72 bool getSampleData(std::vector<uint8_t> &result,
size_t sampleNr);
std::streampos getSamplePos(size_t sampleNr)
Definition: Index.cpp:113
Index & getFileIndex() const
Definition: Stream.hpp:62
bool loadSampleHeader(std::streampos pos, pocolog_cpp::SampleHeaderData &header)
Definition: Stream.cpp:17
bool isValid() const
Definition: Stream.hpp:27
FileStream fileStream
Definition: Stream.hpp:19
StreamType getType() const
Definition: StreamDescription.hpp:36
bool getSampleData(std::vector< uint8_t > &result, size_t sampleNr)
Definition: Stream.cpp:25
StreamType
Definition: Format.hpp:157
const StreamDescription & desc
Definition: Stream.hpp:16
const base::Time & getLastSampleTime() const
Definition: Index.hpp:64
size_t getSize() const
Definition: Stream.hpp:67
size_t getIndex() const
Definition: Stream.hpp:57
std::streampos seekg(std::streampos pos)
Definition: FileStream.cpp:154
Definition: Format.hpp:159
StreamType getStreamType() const
Definition: Stream.hpp:42
const base::Time & getFirstSampleTime() const
Definition: Index.hpp:59
const std::string & getName() const
Definition: StreamDescription.hpp:41
bool good() const
Definition: FileStream.cpp:144
virtual ~Stream()
Definition: Read.hpp:130
const base::Time & getLastSampleTime() const
Definition: Stream.hpp:52
size_t getIndex() const
Definition: StreamDescription.hpp:31
const base::Time & getFistSampleTime() const
Definition: Stream.hpp:47
Stream(std::istream &input, StreamType type=UnknownStreamType, size_t index=Input::nstream)
Definition: Read.hpp:106
void read(char *buffer, size_t size)
Definition: FileStream.cpp:113
std::string getTypeName() const
Definition: Stream.hpp:37
Index & index
Definition: Stream.hpp:17
bool readSample(T &sample, size_t sampleNr)
Definition: Stream.hpp:75
Definition: StreamDescription.hpp:13
Definition: FileStream.hpp:22
size_t getNumSamples() const
Definition: Index.hpp:69
std::string getName() const
Definition: Stream.hpp:32
const std::string & getTypeName() const
Definition: StreamDescription.hpp:46