24 #ifndef __INTERFACES_KEYVALUEINTERFACE_H_ 25 #define __INTERFACES_KEYVALUEINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 54 typedef struct __attribute__((packed)) {
55 int64_t timestamp_sec;
56 int64_t timestamp_usec;
65 } KeyValueInterface_data_t;
67 KeyValueInterface_data_t *data;
80 void set_key(
const char * new_key);
106 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
uint32_t value_uint() const
Get value_uint value.
size_t maxlenof_value_string() const
Get maximum length of value_string value.
void set_value_bool(const bool new_value_bool)
Set value_bool value.
size_t maxlenof_value_byte() const
Get maximum length of value_byte value.
const char * tostring_ValueType(ValueType value) const
Convert ValueType constant to string.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
ValueType
Indicator of current o.
size_t maxlenof_key() const
Get maximum length of key value.
void set_value_float(const float new_value_float)
Set value_float value.
int32_t value_int() const
Get value_int value.
Fawkes library namespace.
KeyValueInterface Fawkes BlackBoard Interface.
uint8_t value_byte() const
Get value_byte value.
size_t maxlenof_value_type() const
Get maximum length of value_type value.
Base class for all Fawkes BlackBoard interfaces.
void set_value_type(const ValueType new_value_type)
Set value_type value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_value_uint(const uint32_t new_value_uint)
Set value_uint value.
const char * type() const
Get type of interface.
bool is_value_bool() const
Get value_bool value.
void set_key(const char *new_key)
Set key value.
void set_value_byte(const uint8_t new_value_byte)
Set value_byte value.
char * key() const
Get key value.
size_t maxlenof_value_float() const
Get maximum length of value_float value.
The value to be transported is of type string.
size_t maxlenof_value_int() const
Get maximum length of value_int value.
char * value_string() const
Get value_string value.
The value to be transported is of type integer.
virtual Message * create_message(const char *type) const
Create message based on type name.
The value to be transported is of type float.
float value_float() const
Get value_float value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
ValueType value_type() const
Get value_type value.
size_t maxlenof_value_uint() const
Get maximum length of value_uint value.
The value to be transported is of type unsigned integer.
size_t maxlenof_value_bool() const
Get maximum length of value_bool value.
void set_value_string(const char *new_value_string)
Set value_string value.
The value to be transported is of type boolean.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
The value to be transported is of type byte.
void set_value_int(const int32_t new_value_int)
Set value_int value.