AbstractReading Class Reference

#include <AbstractReading.h>

Inheritance diagram for AbstractReading:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AbstractReading (double _time, const std::string &_name, const std::string &_robot)
virtual AbstractReadingclone () 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

Detailed Description

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.

Author:
Gian Diego Tipaldi

Definition at line 35 of file AbstractReading.h.


Constructor & Destructor Documentation

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.

Parameters:
_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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


flirtlib
Author(s): Bhaskara Marthi, Gian Diego Tipaldi
autogenerated on Fri Jan 11 11:15:46 2013