8#ifndef META_OCEAN_IO_SERIALIZATION_INPUT_DATA_SERIALIZER_H
9#define META_OCEAN_IO_SERIALIZATION_INPUT_DATA_SERIALIZER_H
22namespace Serialization
128 class SampleQueue :
public std::priority_queue<SamplePair, std::vector<SamplePair>, SamplePairComparator>
197 template <
typename T>
198 bool registerSample();
268 static constexpr size_t maxPendingSampleQueueSize_ = 100;
292 inline explicit FileStream(
const std::string& filename);
311 inline bool isValid()
const override;
348 factoryFunction_(factoryFunction)
355 return sampleA.second->playbackTimestamp() > sampleB.second->playbackTimestamp();
360 ocean_assert(!empty());
362 std::pop_heap(c.begin(), c.end(), comp);
371 stream_(filename.c_str(), std::ios::binary),
385 return inputBitstream_;
This class holds channel configuration (sample type, name, and content type).
Definition DataSerializer.h:56
This class implements a channel with configuration and channel id.
Definition DataSerializer.h:136
This class implements the base class for data serializers.
Definition DataSerializer.h:38
std::pair< ChannelId, UniqueDataSample > SamplePair
Definition of a pair holding a channel id and a unique data sample.
Definition DataSerializer.h:217
std::vector< Channel > Channels
Definition of a vector holding channels.
Definition DataSerializer.h:192
uint32_t ChannelId
Definition of a channel id.
Definition DataSerializer.h:42
std::unique_ptr< DataSample > UniqueDataSample
Definition of a unique pointer holding a DataSample.
Definition DataSample.h:39
The namespace covering the entire Ocean framework.
Definition Accessor.h:15