24 #ifndef __INTERFACES_PCLDATABASERETRIEVEINTERFACE_H_ 25 #define __INTERFACES_PCLDATABASERETRIEVEINTERFACE_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 } PclDatabaseRetrieveInterface_data_t;
59 PclDatabaseRetrieveInterface_data_t *data;
67 typedef struct __attribute__((packed)) {
68 int64_t timestamp_sec;
69 int64_t timestamp_usec;
88 bool original_timestamp;
92 } RetrieveMessage_data_t;
94 RetrieveMessage_data_t *data;
97 RetrieveMessage(
const int64_t ini_timestamp,
const char * ini_database,
const char * ini_collection,
const char * ini_target_frame,
const bool ini_original_timestamp);
128 uint32_t
msgid()
const;
129 void set_msgid(
const uint32_t new_msgid);
134 char *
error()
const;
140 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Base class for all messages passed through interfaces in Fawkes BlackBoard.
RetrieveMessage Fawkes BlackBoard Interface Message.
void set_final(const bool new_final)
Set final value.
void set_error(const char *new_error)
Set error value.
void set_target_frame(const char *new_target_frame)
Set target_frame value.
PclDatabaseRetrieveInterface Fawkes BlackBoard Interface.
Fawkes library namespace.
RetrieveMessage()
Constructor.
char * error() const
Get error value.
void set_timestamp(const int64_t new_timestamp)
Set timestamp value.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_original_timestamp() const
Get maximum length of original_timestamp value.
uint32_t msgid() const
Get msgid value.
char * target_frame() const
Get target_frame value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
bool is_original_timestamp() const
Get original_timestamp value.
size_t maxlenof_final() const
Get maximum length of final value.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
const char * type() const
Get type of interface.
virtual void copy_values(const Interface *other)
Copy values from other interface.
char * database() const
Get database value.
void set_collection(const char *new_collection)
Set collection value.
virtual Message * clone() const
Clone this message.
char * collection() const
Get collection value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
bool is_final() const
Get final value.
size_t maxlenof_target_frame() const
Get maximum length of target_frame value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
size_t maxlenof_error() const
Get maximum length of error value.
~RetrieveMessage()
Destructor.
void set_database(const char *new_database)
Set database value.
size_t maxlenof_database() const
Get maximum length of database value.
void set_original_timestamp(const bool new_original_timestamp)
Set original_timestamp value.
int64_t timestamp() const
Get timestamp value.
size_t maxlenof_timestamp() const
Get maximum length of timestamp value.
size_t maxlenof_collection() const
Get maximum length of collection value.