scanner.h File Reference

#include "config.h"
#include "term.h"

Include dependency graph for scanner.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Token
class  IScanner
class  ScannerFactory

Enumerations

enum  EToken {
  ET_NULL = 0, ET_GET_WHISKER_STATUS, ET_GET_COMPASS_HEADING, ET_GET_COMPASS_HEADING_EX,
  ET_GET_TEMP, ET_GET_WATER, ET_GET_PIR, ET_GET_SONAR,
  ET_GET_TILT, ET_GET_BATT_VOLTAGE, ET_GET_SW_VERSION, ET_GET_BUTTONS,
  ET_GET_LIGHT_LEVEL, ET_GET_SOUND_LEVEL, ET_GET_ENCODER_COUNTS, ET_CMD_PG,
  ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN,
  ET_CMD_PS, ET_CMD_PW
}

Functions

std::ostream & operator<< (std::ostream &, EToken)
 send token type to stream in human-readable form
std::ostream & operator<< (std::ostream &, const Token &)
 send token to stream in human-readable form


Enumeration Type Documentation

enum EToken

token type enumeration

Enumerator:
ET_NULL  null token (not valid)
ET_GET_WHISKER_STATUS  get whisker status
ET_GET_COMPASS_HEADING  get compass heading
ET_GET_COMPASS_HEADING_EX  get compass heading exactly
ET_GET_TEMP  get temperature
ET_GET_WATER  get water sensor status
ET_GET_PIR  get PIR sensor status
ET_GET_SONAR  get sonar status
ET_GET_TILT  get tilt sensors status
ET_GET_BATT_VOLTAGE  get battery voltage
ET_GET_SW_VERSION  get software version
ET_GET_BUTTONS  get buttons state
ET_GET_LIGHT_LEVEL  get light level
ET_GET_SOUND_LEVEL  get sound level
ET_GET_ENCODER_COUNTS  get encoder counts
ET_CMD_PG  Put Gripper Control.
ET_CMD_PH  Put Head Motion Control.
ET_CMD_PL  Put Light Control.
ET_CMD_PM  Put Drive Motor Control.
ET_CMD_PN  Put Navigation Control.
ET_CMD_PS  Put Sound.
ET_CMD_PW  Put Whisker Auto Stop Mask.

Definition at line 36 of file scanner.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Token  
)

send token to stream in human-readable form

Definition at line 199 of file scanner.cc.

References Token::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, ET_NULL, Token::lineno, Token::text, and Token::type.

std::ostream& operator<< ( std::ostream &  ,
EToken   
)

send token type to stream in human-readable form

Definition at line 169 of file scanner.cc.

References StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, ET_GET_BATT_VOLTAGE, ET_GET_BUTTONS, ET_GET_COMPASS_HEADING, ET_GET_COMPASS_HEADING_EX, ET_GET_ENCODER_COUNTS, ET_GET_LIGHT_LEVEL, ET_GET_PIR, ET_GET_SONAR, ET_GET_SOUND_LEVEL, ET_GET_SW_VERSION, ET_GET_TEMP, ET_GET_TILT, ET_GET_WATER, ET_GET_WHISKER_STATUS, and ET_NULL.


Generated on Fri Jul 10 22:42:05 2009 for rob08 by  doxygen 1.5.4