TOBI SignalServer  0.1
template<class T >
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.

Parameters:
[in]blocksizeThe blocksize, the data will be stored.
[in]nr_chThe number of channels to store.
[in]sig_typesA 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.

+ Here is the caller graph for this function:

 All Data Structures Files Functions Variables