TOBI Interface A
0.1
|
Class constants manages all constants needed for the signalserver (especially xml tags) More...
#include <constants.h>
Public Member Functions | |
Constants () | |
Constructor. | |
virtual | ~Constants () |
Default destructor. | |
boost::uint32_t | getSignalFlag (const std::string &s) |
Maps given strings "on" or "off" to boolean values 0 or 1. | |
std::string | getSignalName (const boost::uint32_t &flag) |
Returns the name to a given SignalType flaf. | |
Static Public Attributes | |
static const std::string | tobi |
static const std::string | subject |
static const std::string | s_id |
static const std::string | s_first_name |
static const std::string | s_surname |
static const std::string | s_sex |
static const std::string | s_birthday |
static const std::string | ss |
xml-tag serversettings | |
static const std::string | ss_ctl_port |
static const std::string | ss_udp_bc_addr |
static const std::string | ss_udp_port |
static const std::string | ss_tid_port |
static const std::string | ss_store_data |
static const std::string | ss_filename |
static const std::string | ss_filetype |
static const std::string | ss_filepath |
static const std::string | ss_filepath_default |
static const std::string | ss_file_overwrite |
static const std::string | ss_file_overwrite_default |
static const std::string | file_reader |
static const std::string | fr_speedup |
static const std::string | fr_stop |
Class constants manages all constants needed for the signalserver (especially xml tags)
This class is built to avoid hardcoded values or strings directly in the code, especially needed for parsing xml strings. All members are defined as public static const. This class also manages hardware naming and checks predefined strings on correctnes (e.g. master, slave, ...) It also links defined SignalType values to their respective name (e.g. 0x01 -> eeg) --> see also defines.h
Definition at line 71 of file constants.h.