XCube Stream Reader SDK
 All Classes Files Functions Variables Typedefs Friends Defines
Public Member Functions | Friends
x3c::indexer::CIndexWriter Class Reference

List of all members.

Public Member Functions

 ~CIndexWriter ()
void close ()
void addIndexRecord (UINT64 timestamp, UINT64 offset)
void addIndexRecord (IndexRecord const &record)
UINT32 numRecords () const
bool flushToDisk ()
std::string const & filename () const

Friends

class CIndexer< CIndexWriter >

Constructor & Destructor Documentation

Destructor


Member Function Documentation

void x3c::indexer::CIndexWriter::addIndexRecord ( UINT64  timestamp,
UINT64  offset 
)

Writes a new index to the index file.

Parameters:
timestampThe timestamp for the index (seconds << 32 + nanoseconds)
Thefile offset for this index from the beggining of the corresponding stream data file

Writes a new index to the index file.

Parameters:
recordThe IndexRecord to add

Closes the index file that was opened for either reading or writing.

std::string const & x3c::indexer::CIndexWriter::filename ( ) const [inline]

Returns the filename the writer is managing

Write the index file to persistent storage.

Returns:
true if successful, false otherwize.
UINT32 x3c::indexer::CIndexWriter::numRecords ( ) const [inline]

Returns the number of records written


Friends And Related Function Documentation

friend class CIndexer< CIndexWriter > [friend]

Allow construction and destruction only from CIndexer<CIndexWriter>


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines