24 #ifndef __INTERFACES_TESTINTERFACE_H_
25 #define __INTERFACES_TESTINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
54 int64_t timestamp_sec;
55 int64_t timestamp_usec;
62 } TestInterface_data_t;
65 TestInterface_data_t *data;
75 int64_t timestamp_sec;
76 int64_t timestamp_usec;
78 } SetTestIntMessage_data_t;
81 SetTestIntMessage_data_t *data;
102 int64_t timestamp_sec;
103 int64_t timestamp_usec;
105 } SetTestStringMessage_data_t;
108 SetTestStringMessage_data_t *data;
129 int64_t timestamp_sec;
130 int64_t timestamp_usec;
133 } CalculateMessage_data_t;
136 CalculateMessage_data_t *data;
167 uint8_t
flags()
const;
182 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
size_t maxlenof_result() const
Get maximum length of result value.
void set_test_string(const char *new_test_string)
Set test_string value.
const char * tostring_TestEnum(TestEnum value) const
Convert TestEnum constant to string.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
size_t maxlenof_test_int() const
Get maximum length of test_int value.
TestEnum
Demonstrating enums.
Fawkes library namespace.
size_t maxlenof_test_string() const
Get maximum length of test_string value.
uint32_t test_uint() const
Get test_uint value.
char * test_string() const
Get test_string value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
~CalculateMessage()
Destructor.
virtual Message * create_message(const char *type) const
Create message based on type name.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_addend() const
Get maximum length of addend value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_summand() const
Get maximum length of summand value.
void set_summand(const int32_t new_summand)
Set summand value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
~SetTestStringMessage()
Destructor.
char * test_string() const
Get test_string value.
int32_t test_int() const
Get test_int value.
void set_test_int(const int32_t new_test_int)
Set test_int value.
static const int32_t TEST_CONSTANT
TEST_CONSTANT constant.
size_t maxlenof_flags() const
Get maximum length of flags value.
int32_t test_int() const
Get test_int value.
bool is_test_bool() const
Get test_bool value.
int32_t result() const
Get result value.
void set_addend(const int32_t new_addend)
Set addend value.
void set_test_bool(const bool new_test_bool)
Set test_bool value.
virtual Message * clone() const
Clone this message.
CalculateMessage Fawkes BlackBoard Interface Message.
void set_flags(const uint8_t new_flags)
Set flags value.
SetTestIntMessage Fawkes BlackBoard Interface Message.
void set_test_uint(const uint32_t new_test_uint)
Set test_uint value.
void set_test_string(const char *new_test_string)
Set test_string value.
SetTestIntMessage()
Constructor.
virtual Message * clone() const
Clone this message.
uint8_t flags() const
Get flags value.
size_t maxlenof_test_int() const
Get maximum length of test_int value.
~SetTestIntMessage()
Destructor.
size_t maxlenof_test_uint() const
Get maximum length of test_uint value.
SetTestStringMessage()
Constructor.
size_t maxlenof_test_bool() const
Get maximum length of test_bool value.
int32_t addend() const
Get addend value.
static const float TEST_FLOAT_CONSTANT
TEST_FLOAT_CONSTANT constant.
int32_t summand() const
Get summand value.
void set_result(const int32_t new_result)
Set result value.
SetTestStringMessage Fawkes BlackBoard Interface Message.
void set_test_int(const int32_t new_test_int)
Set test_int value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
const char * type() const
Get type of interface.
size_t maxlenof_test_string() const
Get maximum length of test_string value.
CalculateMessage()
Constructor.
TestInterface Fawkes BlackBoard Interface.