pocolog_cpp
Public Member Functions | Protected Member Functions | Friends | List of all members
pocolog_cpp::DataStream Class Reference

#include <Read.hpp>

Inheritance diagram for pocolog_cpp::DataStream:
pocolog_cpp::Stream

Public Member Functions

 ~DataStream ()
 
std::string getName () const
 
std::string getTypeName () const
 
Typelib::Type const * getType () const
 
Typelib::Registry const * getTypeRegistry () const
 
DataInputIterator begin ()
 
DataInputIterator end ()
 
base::Time getBeginTime () const
 
base::Time getEndTime () const
 
virtual BlockHeader newDataBlock (BlockHeader header)
 
- 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

 DataStream (std::istream &input, size_t index, const std::string &name, const std::string &type_name, Typelib::Registry *registry)
 
- Protected Member Functions inherited from pocolog_cpp::Stream
 Stream (std::istream &input, StreamType type=UnknownStreamType, size_t index=Input::nstream)
 
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)
 

Friends

class Input
 

Additional Inherited Members

- Protected Attributes inherited from pocolog_cpp::Stream
const StreamDescriptiondesc
 
Indexindex
 
FileStream fileStream
 

Constructor & Destructor Documentation

◆ DataStream()

pocolog_cpp::DataStream::DataStream ( std::istream &  input,
size_t  index,
const std::string &  name,
const std::string &  type_name,
Typelib::Registry *  registry 
)
protected

◆ ~DataStream()

pocolog_cpp::DataStream::~DataStream ( )

Member Function Documentation

◆ begin()

DataInputIterator pocolog_cpp::DataStream::begin ( )

◆ end()

DataInputIterator pocolog_cpp::DataStream::end ( )

◆ getBeginTime()

Time pocolog_cpp::DataStream::getBeginTime ( ) const

◆ getEndTime()

Time pocolog_cpp::DataStream::getEndTime ( ) const

◆ getName()

string pocolog_cpp::DataStream::getName ( ) const

◆ getType()

Type const * pocolog_cpp::DataStream::getType ( ) const

◆ getTypeName()

string pocolog_cpp::DataStream::getTypeName ( ) const

◆ getTypeRegistry()

Registry const * pocolog_cpp::DataStream::getTypeRegistry ( ) const

◆ newDataBlock()

BlockHeader pocolog_cpp::DataStream::newDataBlock ( BlockHeader  header)
virtual

Implements pocolog_cpp::Stream.

Friends And Related Function Documentation

◆ Input

friend class Input
friend

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