Classes | Enumerations | Functions

cedrus Namespace Reference

Classes

class  base_device_t
class  port_settings_t
 Handles serial port settings used by the XID devices. More...
class  stim_tracker_t
class  xid_con_t
 Implementation of communication with an XID device. More...
class  xid_device_config_t
 device configuration class More...
class  xid_device_scanner_t
class  response
 struct to encapsulate a response from an XID device More...
class  xid_device_t
 abstraction of an XID device More...

Enumerations

enum  {
  NO_ERR = 0, UNDEFINED = -1, PORT_NOT_AVAILABLE = -2, ERROR_SETTING_UP_PORT = -3,
  ERROR_FLUSHING_PORT = -4, ERROR_READING_PORT = -5, ERROR_WRITING_TO_PORT = -6, ERROR_CLOSING_PORT = -7,
  GENERAL_ERROR = -10, PORT_OPENED_BUT_ABORTED = -11
}
enum  { UNKNOWN_MODEL_ID = 0 }
enum  { ANY_MODEL_ID = -2 }
enum  { NO_XID_DEVICE_FOUND = -1 }
enum  { INVALID_RETURN_VALUE = -99 }
enum  {
  RB530 = 1, RB730 = 2, RB830 = 3, RB834 = 4,
  RB630 = 5, SV1 = 21, LUMINA = 31
}
enum  { XID_ID_LUMINA = 0, XID_ID_SV1 = 1, XID_ID_RB = 2 }
enum  { AD_NO_PROMPTS = 0x01, AD_ASK_BEFORE_CONVERTING = 0x02, AD_CONVERSION_IRREVERSIBLE = 0x04 }
enum  { XID_MODE = '0' }
enum  key_state { NO_KEY_DETECTED = 0, FOUND_KEY_DOWN = 1, FOUND_KEY_UP = 2 }

Functions

template<typename string_type >
std::vector< string_type > tokenize (const string_type &str, const string_type &delimiters)
 Split a delimited string into a std::vector of strings.

Enumeration Type Documentation

anonymous enum
Enumerator:
NO_ERR 
UNDEFINED 
PORT_NOT_AVAILABLE 
ERROR_SETTING_UP_PORT 
ERROR_FLUSHING_PORT 
ERROR_READING_PORT 
ERROR_WRITING_TO_PORT 
ERROR_CLOSING_PORT 
GENERAL_ERROR 
PORT_OPENED_BUT_ABORTED 

Definition at line 37 of file constants.h.

anonymous enum
Enumerator:
UNKNOWN_MODEL_ID 

Definition at line 51 of file constants.h.

anonymous enum
Enumerator:
ANY_MODEL_ID 

Definition at line 56 of file constants.h.

anonymous enum
Enumerator:
NO_XID_DEVICE_FOUND 

Definition at line 60 of file constants.h.

anonymous enum
Enumerator:
INVALID_RETURN_VALUE 

Definition at line 65 of file constants.h.

anonymous enum
Enumerator:
RB530 
RB730 
RB830 
RB834 
RB630 
SV1 
LUMINA 

Definition at line 70 of file constants.h.

anonymous enum
Enumerator:
XID_ID_LUMINA 
XID_ID_SV1 
XID_ID_RB 

Definition at line 81 of file constants.h.

anonymous enum
Enumerator:
AD_NO_PROMPTS 
AD_ASK_BEFORE_CONVERTING 
AD_CONVERSION_IRREVERSIBLE 

Definition at line 88 of file constants.h.

anonymous enum
Enumerator:
XID_MODE 

Definition at line 95 of file constants.h.

Enumerator:
NO_KEY_DETECTED 
FOUND_KEY_DOWN 
FOUND_KEY_UP 

Definition at line 100 of file constants.h.


Function Documentation

template<typename string_type >
std::vector<string_type> cedrus::tokenize ( const string_type &  str,
const string_type &  delimiters 
)

Split a delimited string into a std::vector of strings.

Note that this will not correctly split a string with empty fields, i.e. "value,,value,value". The 2nd empty field will not be returned.

Parameters:
[in]strthe delimited string
[in]delimitersdelimiters used to split the string

Definition at line 49 of file string_tokenizer.hpp.