gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmTrack::TimeSampleAnalogsTracker Class Reference

This analogs tracker reports analog states as specified in the samples of the node. More...

#include <TimeSampleAnalogsTracker.hh>

Inheritance diagram for gramods::gmTrack::TimeSampleAnalogsTracker:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmTrack::TimeSampleAnalogsTracker:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

void addTime (double t)
 Adds a time sample in seconds, from the start of the program. More...
 
void addAnalogs (gmCore::float3 a)
 Adds an analogs sample as three floats representing three analog inputs. More...
 
bool getAnalogs (AnalogsSample &a) override
 Replaces the contents of p with analog data. More...
 
- Public Member Functions inherited from gramods::gmTrack::AnalogsTracker
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Additional Inherited Members

- Public Types inherited from gramods::gmTrack::AnalogsTracker
typedef std::chrono::steady_clock clock
 

Detailed Description

This analogs tracker reports analog states as specified in the samples of the node.

Member Function Documentation

◆ addAnalogs()

void gramods::gmTrack::TimeSampleAnalogsTracker::addAnalogs ( gmCore::float3  a)

Adds an analogs sample as three floats representing three analog inputs.

XML-attribute: analogs

◆ addTime()

void gramods::gmTrack::TimeSampleAnalogsTracker::addTime ( double  t)

Adds a time sample in seconds, from the start of the program.

There must be at least two time samples as well as an equal amount of time samples and amount of samples.

XML-attribute: time

◆ getAnalogs()

bool gramods::gmTrack::TimeSampleAnalogsTracker::getAnalogs ( AnalogsSample a)
overridevirtual

Replaces the contents of p with analog data.

Implements gramods::gmTrack::AnalogsTracker.


The documentation for this class was generated from the following files: