pocolog_cpp
Public Member Functions | List of all members
pocolog_cpp::LogFile Class Reference

#include <LogFile.hpp>

Public Member Functions

 LogFile (const std::string &fileName)
 
 ~LogFile ()
 
std::string getFileName () const
 
std::string getFileBaseName () const
 
const std::vector< Stream * > & getStreams () const
 
const std::vector< StreamDescription > & getStreamDescriptions () const
 
bool loadStreamDescription (StreamDescription &result, std::streampos descPos)
 
const BlockHeadergetCurBlockHeader () const
 
bool readNextBlockHeader (struct BlockHeader &curBlockHeade)
 
bool readNextBlockHeader ()
 
bool readSampleHeader ()
 
bool checkSampleComplete ()
 
bool readCurBlock (std::vector< uint8_t > &blockData)
 
std::streampos getSamplePos () const
 
std::streampos getBlockDataPos () const
 
std::streampos getBlockHeaderPos () const
 
const base::Time getSampleTime () const
 
size_t getSampleStreamIdx () const
 
bool eof () const
 
StreamgetStream (const std::string streamName) const
 

Constructor & Destructor Documentation

◆ LogFile()

pocolog_cpp::LogFile::LogFile ( const std::string &  fileName)

◆ ~LogFile()

pocolog_cpp::LogFile::~LogFile ( )

Member Function Documentation

◆ checkSampleComplete()

bool pocolog_cpp::LogFile::checkSampleComplete ( )

◆ eof()

bool pocolog_cpp::LogFile::eof ( ) const

◆ getBlockDataPos()

std::streampos pocolog_cpp::LogFile::getBlockDataPos ( ) const

◆ getBlockHeaderPos()

std::streampos pocolog_cpp::LogFile::getBlockHeaderPos ( ) const

◆ getCurBlockHeader()

const BlockHeader & pocolog_cpp::LogFile::getCurBlockHeader ( ) const

◆ getFileBaseName()

std::string pocolog_cpp::LogFile::getFileBaseName ( ) const

◆ getFileName()

std::string pocolog_cpp::LogFile::getFileName ( ) const

◆ getSamplePos()

std::streampos pocolog_cpp::LogFile::getSamplePos ( ) const

◆ getSampleStreamIdx()

size_t pocolog_cpp::LogFile::getSampleStreamIdx ( ) const

◆ getSampleTime()

const base::Time pocolog_cpp::LogFile::getSampleTime ( ) const

◆ getStream()

Stream & pocolog_cpp::LogFile::getStream ( const std::string  streamName) const

◆ getStreamDescriptions()

const std::vector< StreamDescription > & pocolog_cpp::LogFile::getStreamDescriptions ( ) const

◆ getStreams()

const std::vector< Stream *> & pocolog_cpp::LogFile::getStreams ( ) const

◆ loadStreamDescription()

bool pocolog_cpp::LogFile::loadStreamDescription ( StreamDescription result,
std::streampos  descPos 
)

◆ readCurBlock()

bool pocolog_cpp::LogFile::readCurBlock ( std::vector< uint8_t > &  blockData)

◆ readNextBlockHeader() [1/2]

bool pocolog_cpp::LogFile::readNextBlockHeader ( struct BlockHeader curBlockHeade)

◆ readNextBlockHeader() [2/2]

bool pocolog_cpp::LogFile::readNextBlockHeader ( )

◆ readSampleHeader()

bool pocolog_cpp::LogFile::readSampleHeader ( )

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