TOBI SignalServer  0.1
tobiss::EEGSimMsgParser Class Reference

Data Structures

struct  EEGConfig
 Simple struct holding parameters to configure the EEG signal. More...
struct  SineConfig
 Simple struct holding parameters to configure the sine waves. More...

Public Types

enum  MessageType { Invalid, GetConfig, Config }

Public Member Functions

 EEGSimMsgParser (std::string &str_buffer)
 Constructor.
virtual ~EEGSimMsgParser ()
 Destructor.
void parseMessage ()
MessageType getMessageType ()
void getConfigs (std::map< boost::uint16_t, EEGConfig > &eeg, std::multimap< boost::uint16_t, SineConfig > &sine)
std::string buildConfigMsgString (std::map< boost::uint16_t, EEGConfig > &eeg, std::multimap< boost::uint16_t, SineConfig > &sine)
std::string getOKMsg ()
std::string getErrorMsg ()

Static Public Attributes

static const unsigned int MESSAGE_VERSION = 1

Private Member Functions

MessageType parseMessageType ()
void checkMessage ()
void parseConfigMessage ()

Private Attributes

MessageType type_
std::string & str_buffer_
std::map< std::string,
MessageType > 
msg_types_map_
std::map< boost::uint16_t,
EEGConfig
eeg_config_
std::multimap< boost::uint16_t,
SineConfig
sine_configs_
 <ch_nr, EEGCfg>

Detailed Description

Definition at line 54 of file eeg_sim_msg_parser.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables