My Project
|
Public Member Functions | |
ArchiveFileHandler () | |
ArchiveFileHandler (const ArchiveFileHandler &objToBeCopied) | |
ArchiveFileHandler (ArchiveFileHandler &objToBeCopied) | |
void | operator= (const ArchiveFileHandler &objToBeAssigned) |
void | operator= (ArchiveFileHandler &objToBeAssigned) |
virtual | ~ArchiveFileHandler () |
void | openForRead (bool memMap=false) |
ArrayMap * | getArrayMap () |
void | readTimestamps () |
void | advanceToFrame (unsigned iFrame, off_t offset=0) |
double | getMjd (unsigned iFrame) |
unsigned | findFirstFrameBefore (std::string date) |
unsigned | findFirstFrameAfter (std::string date) |
unsigned | nFrame () |
![]() | |
FileHandler () | |
FileHandler (std::string path) | |
FileHandler (const FileHandler &objToBeCopied) | |
FileHandler (FileHandler &objToBeCopied) | |
void | operator= (const FileHandler &objToBeAssigned) |
void | operator= (FileHandler &objToBeAssigned) |
virtual | ~FileHandler () |
void | setTo (std::string path) |
void | close () |
void | advanceByNbytes (off_t bytes) |
void | setToBeginning () |
off_t | setToEnd () |
unsigned | getFileSizeInBytes () |
int | getFd () |
off_t | getCurrentOffset () |
void | read (void *buf, size_t nByte) |
void | memoryMap () |
void | loadFile () |
Friends | |
std::ostream & | operator<< (std::ostream &os, ArchiveFileHandler &obj) |
Additional Inherited Members | |
![]() | |
void | checkFd () |
![]() | |
std::string | path_ |
bool | pathIsSet_ |
int | fd_ |
off_t | currentOffset_ |
size_t | sizeInBytes_ |
bool | memMap_ |
unsigned char * | mptrHead_ |
bool | loadFile_ |
std::vector< unsigned char > | fbuf_ |
ArchiveFileHandler::ArchiveFileHandler | ( | ) |
Constructor.
....................................................................... Constructor.
ArchiveFileHandler::ArchiveFileHandler | ( | const ArchiveFileHandler & | objToBeCopied | ) |
Copy Constructor.
....................................................................... Const Copy Constructor.
ArchiveFileHandler::ArchiveFileHandler | ( | ArchiveFileHandler & | objToBeCopied | ) |
Copy Constructor.
....................................................................... Copy Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
void ArchiveFileHandler::advanceToFrame | ( | unsigned | iFrame, |
off_t | regOffset = 0 |
||
) |
....................................................................... Advance to the requested frame (plus any additional offset)
unsigned ArchiveFileHandler::findFirstFrameAfter | ( | std::string | date | ) |
....................................................................... Binary search for the first frame in the file after (or equal to) the specified date
unsigned ArchiveFileHandler::findFirstFrameBefore | ( | std::string | date | ) |
....................................................................... Binary search for the first frame in the file before (or equal to) the specified date
double ArchiveFileHandler::getMjd | ( | unsigned | iFrame | ) |
....................................................................... Get the MJD of the specified frame
|
virtual |
....................................................................... Overloaded open function from the base class that also initializes the read buffer
Reimplemented from gcp::util::FileHandler.
void ArchiveFileHandler::operator= | ( | const ArchiveFileHandler & | objToBeAssigned | ) |
Const Assignment Operator.
....................................................................... Const Assignment Operator.
void ArchiveFileHandler::operator= | ( | ArchiveFileHandler & | objToBeAssigned | ) |
Assignment Operator.
....................................................................... Assignment Operator.
|
friend |
Output Operator.