My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::ArchiveFileHandler Class Reference
Inheritance diagram for gcp::util::ArchiveFileHandler:
gcp::util::FileHandler

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)
 
ArrayMapgetArrayMap ()
 
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 ()
 
- Public Member Functions inherited from gcp::util::FileHandler
 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

- Protected Member Functions inherited from gcp::util::FileHandler
void checkFd ()
 
- Protected Attributes inherited from gcp::util::FileHandler
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_
 

Constructor & Destructor Documentation

ArchiveFileHandler::ArchiveFileHandler ( )

Constructor.

....................................................................... Constructor.

ArchiveFileHandler::ArchiveFileHandler ( const ArchiveFileHandler objToBeCopied)

Copy Constructor.

....................................................................... Const Copy Constructor.

ArchiveFileHandler::ArchiveFileHandler ( ArchiveFileHandler objToBeCopied)

Copy Constructor.

....................................................................... Copy Constructor.

ArchiveFileHandler::~ArchiveFileHandler ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

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

void ArchiveFileHandler::openForRead ( bool  memMap = false)
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.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
ArchiveFileHandler obj 
)
friend

Output Operator.


The documentation for this class was generated from the following files: