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);
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.
char * pcl_id() const
Get pcl_id value.
char * database() const
Get database value.
void set_database(const char *new_database)
Set database value.
Fawkes library namespace.
void set_pcl_id(const char *new_pcl_id)
Set pcl_id value.
StoreMessage()
Constructor.
char * collection() const
Get collection value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
char * error() const
Get error value.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_database() const
Get maximum length of database value.
size_t maxlenof_collection() const
Get maximum length of collection value.
void set_collection(const char *new_collection)
Set collection value.
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.
virtual Message * clone() const
Clone this message.
uint32_t msgid() const
Get msgid value.
~StoreMessage()
Destructor.
size_t maxlenof_pcl_id() const
Get maximum length of pcl_id 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.