TOBI SignalServer
0.1
|
void tobiss::SampleBlock< T >::init | ( | boost::uint16_t | blocksize, |
boost::uint16_t | nr_ch, | ||
std::vector< boost::uint32_t > | sig_types | ||
) |
Sets the block counter for blocks to be appended bach to zero.
[in] | blocksize | The blocksize, the data will be stored. |
[in] | nr_ch | The number of channels to store. |
[in] | sig_types | A vector specifying the signal type of every sampled channel. |
init is used to initialize a SampleBlock. After re-initialization, inserting more or less channels or blocks into a SampleBlock is not possible and will cause an exception if data is read to early (using appending blocks) or if a too short or long vector is inserted. TODO: A resize function to append more blocks into the sample block is needed.
Definition at line 271 of file sample_block.h.