Fawkes API
Fawkes Development Version
|
24 #ifndef _INTERFACES_HARDWAREMODELSINTERFACE_H_
25 #define _INTERFACES_HARDWAREMODELSINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
48 } HardwareModelsInterface_data_t;
50 HardwareModelsInterface_data_t *data;
59 int64_t timestamp_sec;
60 int64_t timestamp_usec;
63 } StateChangeMessage_data_t;
65 StateChangeMessage_data_t *data;
99 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
StateChangeMessage()
Constructor.
~StateChangeMessage()
Destructor.
char * transition() const
Get transition value.
size_t maxlenof_transition() const
Get maximum length of transition value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
bool is_busy() const
Get busy value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
char * component() const
Get component value.
const char * type() const
Get type of interface.
void set_error(const char *new_error)
Set error value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_component() const
Get maximum length of component value.
Fawkes library namespace.
size_t maxlenof_error() const
Get maximum length of error value.
HardwareModelsInterface Fawkes BlackBoard Interface.
void set_component(const char *new_component)
Set component value.
Base class for all Fawkes BlackBoard interfaces.
virtual Message * create_message(const char *type) const
Create message based on type name.
virtual Message * clone() const
Clone this message.
size_t maxlenof_busy() const
Get maximum length of busy value.
void set_transition(const char *new_transition)
Set transition value.
char * error() const
Get error value.
void set_busy(const bool new_busy)
Set busy value.
StateChangeMessage Fawkes BlackBoard Interface Message.
virtual void copy_values(const Interface *other)
Copy values from other interface.