24 #ifndef __INTERFACES_PCLDATABASESTOREINTERFACE_H_ 25 #define __INTERFACES_PCLDATABASESTOREINTERFACE_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;
57 } PclDatabaseStoreInterface_data_t;
59 PclDatabaseStoreInterface_data_t *data;
67 typedef struct __attribute__((packed)) {
68 int64_t timestamp_sec;
69 int64_t timestamp_usec;
81 } StoreMessage_data_t;
83 StoreMessage_data_t *data;
86 StoreMessage(
const char * ini_pcl_id,
const char * ini_database,
const char * ini_collection);
92 char * pcl_id()
const;
93 void set_pcl_id(
const char * new_pcl_id);
94 size_t maxlenof_pcl_id()
const;
95 char * database()
const;
96 void set_database(
const char * new_database);
97 size_t maxlenof_database()
const;
98 char * collection()
const;
99 void set_collection(
const char * new_collection);
100 size_t maxlenof_collection()
const;
101 virtual Message * clone()
const;
111 uint32_t
msgid()
const;
112 void set_msgid(
const uint32_t new_msgid);
117 char *
error()
const;
123 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_msgid(const uint32_t new_msgid)
Set msgid value.
virtual Message * create_message(const char *type) const
Create message based on type name.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_final(const bool new_final)
Set final value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_error(const char *new_error)
Set error value.
Fawkes library namespace.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
char * error() const
Get error value.
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
size_t maxlenof_final() const
Get maximum length of final value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
bool is_final() const
Get final value.
uint32_t msgid() const
Get msgid value.
StoreMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_error() const
Get maximum length of error value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
PclDatabaseStoreInterface Fawkes BlackBoard Interface.