pocolog_cpp
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pocolog_cpp::InputDataStream Class Reference

#include <InputDataStream.hpp>

Inheritance diagram for pocolog_cpp::InputDataStream:
pocolog_cpp::Stream

Public Member Functions

 InputDataStream (const StreamDescription &desc, Index &index)
 
virtual ~InputDataStream ()
 
Typelib::Type const * getType () const
 
const std::string getCXXType () const
 
size_t getTypeMemorySize () const
 
Typelib::Registry & getStreamRegistry ()
 
template<typename T >
bool getSample (T &out, size_t sampleNr)
 
Typelib::Value getTyplibValue (void *memoryOfType, size_t memorySize, size_t sampleNr)
 
- Public Member Functions inherited from pocolog_cpp::Stream
virtual ~Stream ()
 
bool isValid () const
 
StreamType getType () const
 
size_t getIndex () const
 
size_t getBeginPos () const
 
size_t getEndPos () const
 
size_t getSize () const
 
size_t getDataSize () const
 
virtual ~Stream ()
 
bool isValid () const
 
std::string getName () const
 
std::string getTypeName () const
 
StreamType getStreamType () const
 
const base::Time & getFistSampleTime () const
 
const base::Time & getLastSampleTime () const
 
size_t getIndex () const
 
IndexgetFileIndex () const
 
size_t getSize () const
 
bool getSampleData (std::vector< uint8_t > &result, size_t sampleNr)
 
template<typename T >
bool readSample (T &sample, size_t sampleNr)
 

Protected Member Functions

void loadTypeLib ()
 
- Protected Member Functions inherited from pocolog_cpp::Stream
 Stream (std::istream &input, StreamType type=UnknownStreamType, size_t index=Input::nstream)
 
virtual BlockHeader newDataBlock (BlockHeader header)=0
 
void newBlockAt (size_t pos, size_t size)
 
std::istream & getInputStream ()
 
 Stream (const StreamDescription &desc, Index &index)
 
bool loadSampleHeader (std::streampos pos, pocolog_cpp::SampleHeaderData &header)
 

Protected Attributes

const Typelib::Type * m_type
 
Typelib::Registry * m_registry
 
- Protected Attributes inherited from pocolog_cpp::Stream
const StreamDescriptiondesc
 
Indexindex
 
FileStream fileStream
 

Constructor & Destructor Documentation

◆ InputDataStream()

pocolog_cpp::InputDataStream::InputDataStream ( const StreamDescription desc,
Index index 
)

◆ ~InputDataStream()

pocolog_cpp::InputDataStream::~InputDataStream ( )
virtual

Member Function Documentation

◆ getCXXType()

const std::string pocolog_cpp::InputDataStream::getCXXType ( ) const

◆ getSample()

template<typename T >
bool pocolog_cpp::InputDataStream::getSample ( T &  out,
size_t  sampleNr 
)
inline

◆ getStreamRegistry()

Typelib::Registry& pocolog_cpp::InputDataStream::getStreamRegistry ( )
inline

◆ getType()

const Typelib::Type * pocolog_cpp::InputDataStream::getType ( ) const

◆ getTypeMemorySize()

size_t pocolog_cpp::InputDataStream::getTypeMemorySize ( ) const
inline

◆ getTyplibValue()

Typelib::Value pocolog_cpp::InputDataStream::getTyplibValue ( void *  memoryOfType,
size_t  memorySize,
size_t  sampleNr 
)

◆ loadTypeLib()

void pocolog_cpp::InputDataStream::loadTypeLib ( )
protected

Member Data Documentation

◆ m_registry

Typelib::Registry* pocolog_cpp::InputDataStream::m_registry
protected

◆ m_type

const Typelib::Type* pocolog_cpp::InputDataStream::m_type
protected

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