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

Public Member Functions | Private Attributes | Friends

gdf::Channel Class Reference

Representation of a channel (signal in GDF) More...

#include <Channel.h>

Collaboration diagram for gdf::Channel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addSamplePhys (const double value)
 Add a physical sample to the channel.
template<typename T >
void addSampleRaw (const T rawval)
 Add a raw sample to the channel.
void blitSamplesPhys (const double *values, size_t num)
 Blit a number of physical samples into channel.
template<typename T >
void blitSamplesRaw (const T *values, size_t num)
 Blit a number of raw samples into channel.
 Channel (const SignalHeader *sig_hdr)
 Constructor.
 Channel (const Channel &other)
 Copy Constructor.
 Channel (const SignalHeader *sig_hdr, const size_t length)
 Constructor.
void clear ()
 Reset read and write positions.
void deblitSamplesPhys (double *values, size_t start, size_t num)
 Blit a number of physical samples from channel to buffer.
template<typename T >
void deblitSamplesRaw (T *values, size_t start, size_t num)
 Blit a number of raw samples from channel to buffer.
void fillPhys (const double value, size_t num)
 Fill a number of samples with the same physical value.
template<typename T >
void fillRaw (const T value, size_t num)
 Fill a number of samples with the same raw value.
size_t getFree ()
 Get number of free samples.
double getSamplePhys (size_t pos)
 get sample value
uint32 getTypeID ()
 Get type of channel.
size_t getWritten ()
 Get number of written samples.
void setSamplePhys (size_t pos, double value)
 set sample value
virtual ~Channel ()
 Destructor.

Private Attributes

ChannelDataBasem_data
const SignalHeaderm_signalheader

Friends

std::ostream & operator<< (std::ostream &out, const Channel &c)
 Channel Serializer.
std::istream & operator>> (std::istream &in, Channel &c)
 Channel Deserializer.

Detailed Description

Representation of a channel (signal in GDF)

Definition at line 30 of file Channel.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index