#include <AbstractReading.h>

Public Member Functions | |
| AbstractReading (double _time, const std::string &_name, const std::string &_robot) | |
| virtual AbstractReading * | clone () const =0 |
| const std::string & | getName () const |
| const std::string & | getRobot () const |
| double | getTime () const |
| virtual | ~AbstractReading () |
Protected Attributes | |
| std::string | m_name |
| std::string | m_robot |
| double | m_time |
Representation of an abstract sensor measurement. This class represent a general sensor reading in terms of timestamp, sensor name and robot name. Other sensor modality should inherit from this base class.
Definition at line 35 of file AbstractReading.h.
| AbstractReading::AbstractReading | ( | double | _time, | |
| const std::string & | _name, | |||
| const std::string & | _robot | |||
| ) |
Constructor. This is an abstract class, so the constructor only creates the shared part of any specialized class.
| _time | The timestamp of the reading. | |
| _name | The name of the sensor. | |
| _robot | The name of the robot. |
Definition at line 3 of file AbstractReading.cpp.
| virtual AbstractReading::~AbstractReading | ( | ) | [inline, virtual] |
Destructor.
Definition at line 45 of file AbstractReading.h.
| virtual AbstractReading* AbstractReading::clone | ( | ) | const [pure virtual] |
Clone function for prototyping. It implements the Prototype pattern.
Implemented in LaserReading.
| const std::string& AbstractReading::getName | ( | ) | const [inline] |
Get the sensor name.
Definition at line 53 of file AbstractReading.h.
| const std::string& AbstractReading::getRobot | ( | ) | const [inline] |
Get the robot name.
Definition at line 55 of file AbstractReading.h.
| double AbstractReading::getTime | ( | ) | const [inline] |
Get the timestamp of the reading.
Definition at line 51 of file AbstractReading.h.
std::string AbstractReading::m_name [protected] |
The name of the sensor
Definition at line 62 of file AbstractReading.h.
std::string AbstractReading::m_robot [protected] |
The name of the robot (hostname of the machine)
Definition at line 64 of file AbstractReading.h.
double AbstractReading::m_time [protected] |
The timestamp of the reading (in seconds).
Definition at line 60 of file AbstractReading.h.