3 #ifndef GCP_UTIL_FILEHANDLER_H
4 #define GCP_UTIL_FILEHANDLER_H
62 void setTo(std::string path);
63 virtual void openForRead(
bool memMap=
false);
65 void advanceByNbytes(off_t
bytes);
66 void setToBeginning();
68 unsigned getFileSizeInBytes();
72 off_t getCurrentOffset();
73 void read(
void* buf,
size_t nByte);
94 unsigned char* mptrHead_;
97 std::vector<unsigned char> fbuf_;
108 #endif // End #ifndef GCP_UTIL_FILEHANDLER_H
void operator=(const FileHandler &objToBeAssigned)
Definition: FileHandler.cc:48
Definition: compress.c:1548
virtual ~FileHandler()
Definition: FileHandler.cc:74
FileHandler()
Definition: FileHandler.cc:19
Definition: FileHandler.h:23
friend std::ostream & operator<<(std::ostream &os, FileHandler &obj)