24 #ifndef __INTERFACES_SPEECHRECOGNITIONINTERFACE_H_ 25 #define __INTERFACES_SPEECHRECOGNITIONINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 43 typedef struct __attribute__((packed)) {
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
58 } SpeechRecognitionInterface_data_t;
60 SpeechRecognitionInterface_data_t *data;
68 typedef struct __attribute__((packed)) {
69 int64_t timestamp_sec;
70 int64_t timestamp_usec;
71 } ResetMessage_data_t;
73 ResetMessage_data_t *data;
81 virtual Message * clone()
const;
88 typedef struct __attribute__((packed)) {
89 int64_t timestamp_sec;
90 int64_t timestamp_usec;
94 } SetEnabledMessage_data_t;
96 SetEnabledMessage_data_t *data;
108 virtual Message * clone()
const;
119 void set_text(
const char * new_text);
133 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Base class for all messages passed through interfaces in Fawkes BlackBoard.
bool is_processing() const
Get processing value.
Fawkes library namespace.
SetEnabledMessage Fawkes BlackBoard Interface Message.
bool is_enabled() const
Get enabled value.
void set_processing(const bool new_processing)
Set processing value.
Base class for all Fawkes BlackBoard interfaces.
void set_counter(const uint32_t new_counter)
Set counter value.
uint32_t counter() const
Get counter value.
void set_text(const char *new_text)
Set text value.
void set_enabled(const bool new_enabled)
Set enabled value.
const char * type() const
Get type of interface.
SpeechRecognitionInterface Fawkes BlackBoard Interface.
size_t maxlenof_enabled() const
Get maximum length of enabled value.
char * text() const
Get text value.
ResetMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_text() const
Get maximum length of text value.
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_processing() const
Get maximum length of processing value.
size_t maxlenof_counter() const
Get maximum length of counter value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.