24 #include <interfaces/EclipseDebuggerInterface.h> 26 #include <core/exceptions/software.h> 44 EclipseDebuggerInterface::EclipseDebuggerInterface() : Interface()
46 data_size =
sizeof(EclipseDebuggerInterface_data_t);
48 data = (EclipseDebuggerInterface_data_t *)
data_ptr;
54 unsigned char tmp_hash[] = {0xc0, 0x8f, 0x5b, 0xb4, 0xcd, 0xf, 0xe0, 0x88, 0xfd, 0x5d, 0xe4, 0xfe, 0x1, 0xb, 0xa2, 0x83};
59 EclipseDebuggerInterface::~EclipseDebuggerInterface()
91 data->port = new_port;
122 strncpy(data->host, new_host,
sizeof(data->host)-1);
123 data->host[
sizeof(data->host)-1] = 0;
131 if ( strncmp(
"ConnectionMessage",
type, INTERFACE_MESSAGE_TYPE_SIZE_) == 0 ) {
135 "message type for this interface type.",
type);
151 memcpy(data, oi->data,
sizeof(EclipseDebuggerInterface_data_t));
171 data_size =
sizeof(ConnectionMessage_data_t);
174 data = (ConnectionMessage_data_t *)
data_ptr;
192 data = (ConnectionMessage_data_t *)
data_ptr;
void * data_ptr
Pointer to memory that contains local data.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_hash(unsigned char *ihash)
Set hash.
Fawkes library namespace.
size_t maxlenof_host() const
Get maximum length of host value.
Timestamp data, must be present and first entries for each interface data structs!...
16 bit unsigned integer field
virtual void copy_values(const Interface *other)
Copy values from other interface.
Base class for all Fawkes BlackBoard interfaces.
void set_host(const char *new_host)
Set host value.
message_data_ts_t * data_ts
data timestamp aliasing pointer
unsigned int data_size
Size of memory needed to hold all data.
size_t maxlenof_port() const
Get maximum length of port value.
void add_messageinfo(const char *name)
Add an entry to the message info list.
bool data_changed
Indicator if data has changed.
virtual Message * clone() const
Clone this message.
const char * type() const
Get type of interface.
void * data_ptr
Pointer to local memory storage.
EclipseDebuggerInterface Fawkes BlackBoard Interface.
uint16_t port() const
Get port value.
char * host() const
Get host value.
virtual Message * create_message(const char *type) const
Create message based on type name.
ConnectionMessage Fawkes BlackBoard Interface Message.
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0)
Add an entry to the info list.
~ConnectionMessage()
Destructor.
ConnectionMessage()
Constructor.
void set_port(const uint16_t new_port)
Set port value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.