

Definition at line 52 of file core.cc.
Public Member Functions | |
| Core (IWriter *) | |
| virtual | ~Core () |
| virtual bool | hasError () const |
| virtual bool | dispatch (const Token &) |
| virtual IEnviroment & | GetEnviroment () |
| virtual Trilobot & | GetTrilobot () |
| virtual void | Export (std::ostream &output) |
| virtual void | Import (std::istream &input) |
Private Attributes | |
| IWriter * | writer_ |
| bool | hasError_ |
| unsigned | whiskMask |
| unsigned | distance |
| World | m_world |
| CoreExporter | m_export |
| Trilobot | m_robot |
| virtual bool hasError | ( | ) | const [inline, virtual] |
Return true if any error was detected.
Implements IErrorSensitive.
Definition at line 57 of file core.cc.
References hasError_.
| bool dispatch | ( | const Token & | ) | [virtual] |
dispatch request
Implements IListener.
Definition at line 112 of file core.cc.
References ICommand::Answer(), Token::args, distance, 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_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, IComponent::Handle(), ICommand::Handled(), m_robot, IObject::Position(), Token::type, whiskMask, IWriter::writeAck(), IWriter::writeByte(), writer_, and IWriter::writeWord().

| virtual IEnviroment& GetEnviroment | ( | ) | [inline, virtual] |
Implements ICore.
Definition at line 59 of file core.cc.
References World::Enviroment(), and m_world.

| virtual Trilobot& GetTrilobot | ( | ) | [inline, virtual] |
| virtual void Export | ( | std::ostream & | output | ) | [inline, virtual] |
Implements ICanExportImport.
Definition at line 61 of file core.cc.
References m_robot, and IObject::Serialize().

| virtual void Import | ( | std::istream & | input | ) | [inline, virtual] |
Implements ICanExportImport.
Definition at line 62 of file core.cc.
References IObject::Deserialize(), and m_robot.

bool hasError_ [private] |
unsigned whiskMask [private] |
unsigned distance [private] |
CoreExporter m_export [private] |
Definition at line 74 of file core.cc.
Referenced by dispatch(), Export(), GetTrilobot(), and Import().
1.5.4