Fawkes API
Fawkes Development Version
|
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>
53 int64_t timestamp_sec;
54 int64_t timestamp_usec;
61 } TestInterface_data_t;
63 TestInterface_data_t *data;
73 int64_t timestamp_sec;
74 int64_t timestamp_usec;
76 } SetTestIntMessage_data_t;
78 SetTestIntMessage_data_t *data;
99 int64_t timestamp_sec;
100 int64_t timestamp_usec;
102 } SetTestStringMessage_data_t;
104 SetTestStringMessage_data_t *data;
125 int64_t timestamp_sec;
126 int64_t timestamp_usec;
129 } CalculateMessage_data_t;
131 CalculateMessage_data_t *data;
163 uint8_t
flags()
const;
178 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
const char * tostring_TestEnum(TestEnum value) const
Convert TestEnum constant to string.
virtual Message * create_message(const char *type) const
Create message based on type name.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_test_string() const
Get maximum length of test_string value.
void set_result(const int32_t new_result)
Set result value.
~SetTestIntMessage()
Destructor.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
SetTestIntMessage()
Constructor.
int32_t addend() const
Get addend value.
~SetTestStringMessage()
Destructor.
CalculateMessage()
Constructor.
void set_test_string(const char *new_test_string)
Set test_string value.
void set_test_int(const int32_t new_test_int)
Set test_int value.
TestEnum
Demonstrating enums.
const char * type() const
Get type of interface.
~CalculateMessage()
Destructor.
int32_t test_int() const
Get test_int value.
int32_t result() const
Get result value.
size_t maxlenof_result() const
Get maximum length of result value.
size_t maxlenof_flags() const
Get maximum length of flags value.
size_t maxlenof_test_int() const
Get maximum length of test_int value.
void set_summand(const int32_t new_summand)
Set summand value.
SetTestIntMessage Fawkes BlackBoard Interface Message.
CalculateMessage Fawkes BlackBoard Interface Message.
char * test_string() const
Get test_string value.
bool is_test_bool() const
Get test_bool value.
int32_t test_int() const
Get test_int value.
size_t maxlenof_test_int() const
Get maximum length of test_int value.
Fawkes library namespace.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
static const float TEST_FLOAT_CONSTANT
TEST_FLOAT_CONSTANT constant.
Base class for all Fawkes BlackBoard interfaces.
virtual Message * clone() const
Clone this message.
SetTestStringMessage()
Constructor.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
void set_addend(const int32_t new_addend)
Set addend value.
size_t maxlenof_addend() const
Get maximum length of addend value.
size_t maxlenof_test_uint() const
Get maximum length of test_uint value.
static const int32_t TEST_CONSTANT
TEST_CONSTANT constant.
uint32_t test_uint() const
Get test_uint value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_summand() const
Get maximum length of summand value.
void set_flags(const uint8_t new_flags)
Set flags value.
uint8_t flags() const
Get flags value.
virtual Message * clone() const
Clone this message.
void set_test_uint(const uint32_t new_test_uint)
Set test_uint value.
size_t maxlenof_test_string() const
Get maximum length of test_string value.
char * test_string() const
Get test_string value.
int32_t summand() const
Get summand value.
size_t maxlenof_test_bool() const
Get maximum length of test_bool value.
void set_test_string(const char *new_test_string)
Set test_string value.
void set_test_bool(const bool new_test_bool)
Set test_bool value.
TestInterface Fawkes BlackBoard Interface.
void set_test_int(const int32_t new_test_int)
Set test_int value.
SetTestStringMessage Fawkes BlackBoard Interface Message.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.