Logo Search packages:      
Sourcecode: libgdf version File versions  Download package

template<typename T >
void gdf::Channel::addSampleRaw ( const T  rawval )

Add a raw sample to the channel.

value is converted to the channel's data type. but otherwise remains unmodified

Definition at line 114 of file Channel.h.

Referenced by gdf::RecordBuffer::addSampleRaw().

        using boost::numeric_cast;

        switch( m_signalheader->get_datatype( ) )
        case INT8: m_data->addSample( numeric_cast<int8>(rawval) ); break;
        case UINT8: m_data->addSample( numeric_cast<uint8>(rawval) ); break;
        case INT16: m_data->addSample( numeric_cast<int16>(rawval) ); break;
        case UINT16: m_data->addSample( numeric_cast<uint16>(rawval) ); break;
        case INT32: m_data->addSample( numeric_cast<int32>(rawval) ); break;
        case UINT32: m_data->addSample( numeric_cast<uint32>(rawval) ); break;
        case INT64: m_data->addSample( numeric_cast<int64>(rawval) ); break;
        case UINT64: m_data->addSample( numeric_cast<uint64>(rawval) ); break;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index