NTRT Simulator
Version: Master
|
#include <tgRodSensorInfo.h>
Public Member Functions | |
tgRodSensorInfo () | |
~tgRodSensorInfo () | |
virtual bool | isThisMySenseable (tgSenseable *pSenseable) |
virtual std::vector< tgSensor * > | createSensorsIfAppropriate (tgSenseable *pSenseable) |
tgRodSensorInfo is a sensor info class that creates tgRodSensors for tgRods.
Definition at line 47 of file tgRodSensorInfo.h.
tgRodSensorInfo::tgRodSensorInfo | ( | ) |
tgSensorInfo has an empty constructor. It does not contain any data.
Nothing to do in this constructor. A sensor info doesn't have any data.
Definition at line 39 of file tgRodSensorInfo.cpp.
tgRodSensorInfo::~tgRodSensorInfo | ( | ) |
Similarly, its destructor should be empty.
Similarly, empty destructor.
Definition at line 46 of file tgRodSensorInfo.cpp.
|
virtual |
Similarly, create a sensor if appropriate. See tgSensorInfo for more... info.
[in] | pSenseable | pointer to a senseable object. Sensor will be created for this pSenseable. |
invalid_argument | if pSenseable is not a tgRod. This enforces the caller to check isThisMySenseable before creating sensors. Play nice! |
Create a rod sensor for a tgRod. Returns a list of size 1.
Implements tgSensorInfo.
Definition at line 67 of file tgRodSensorInfo.cpp.
|
virtual |
From tgSensorInfo, need to implement a check to see if a particular tgSenseable is a tgRod.
[in] | pSenseable | a pointer to a tgSenseable object, that this sensor info may or may not be able to create a sensor for. |
To check if a tgSenseable is a tgRod, we can use tgCast.
Implements tgSensorInfo.
Definition at line 53 of file tgRodSensorInfo.cpp.