TwirreLink
 All Classes Functions Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
twirre::Sensor Class Reference
Inheritance diagram for twirre::Sensor:
Inheritance graph
[legend]
Collaboration diagram for twirre::Sensor:
Collaboration graph
[legend]

Public Member Functions

 Sensor (const std::string name, const std::string description)
 
 Sensor (const Sensor &)=delete
 
 Sensor (Sensor &&)=delete
 
Sensoroperator= (const Sensor &)=delete
 
Sensoroperator= (Sensor &&)=delete
 
virtual std::map< std::string,
Value * > 
SenseAll ()
 
virtual std::vector< std::string > getAvailableValues ()
 
virtual bool haveValue (std::string name)
 
virtual bool haveValues (std::vector< std::string >)
 
virtual ValuepeekValue (std::string name)
 
virtual std::map< std::string,
Value * > 
peekValues (const std::vector< std::string > &names)
 
virtual std::map< std::string,
Value * > 
Sense_impl (const std::vector< std::string > &names)
 
virtual void onSense (const std::vector< std::string > &names)
 
ValueSense (const std::string &name)
 
std::map< std::string, Value * > Sense (const std::vector< std::string > &names)
 
Valueoperator[] (const std::string &name)
 
std::map< std::string, Value * > operator[] (const std::vector< std::string > &names)
 
virtual std::string ToString () override
 
void clearLoggerCallback ()
 
void setLoggerCallback (std::function< void(Sensor *, std::map< std::string, Value * > &)> cbfn)
 
- Public Member Functions inherited from twirre::Device
 Device (const std::string name, const std::string description)
 
virtual const std::string & getName () const
 
virtual const std::string & getDescription () const
 

Protected Member Functions

void registerValue (Value *val)
 
void registerValues (std::vector< Value * > vals)
 

Protected Attributes

std::function< void(Sensor
*, std::map< std::string,
Value * > &)> 
_loggerCallback
 
std::map< std::string, Value * > _valueList
 
- Protected Attributes inherited from twirre::Device
const std::string _name
 
const std::string _description
 

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