Public Member Functions | |
Sensor (const std::string name, const std::string description) | |
Sensor (const Sensor &)=delete | |
Sensor (Sensor &&)=delete | |
Sensor & | operator= (const Sensor &)=delete |
Sensor & | operator= (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 Value & | peekValue (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) |
Value & | Sense (const std::string &name) |
std::map< std::string, Value * > | Sense (const std::vector< std::string > &names) |
Value & | operator[] (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) |
![]() | |
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 |
![]() | |
const std::string | _name |
const std::string | _description |