Fawkes API
Fawkes Development Version
|
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()
128 if ( strncmp(
"ConnectionMessage",
type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
132 "message type for this interface type.",
type);
148 memcpy(data, oi->data,
sizeof(EclipseDebuggerInterface_data_t));
168 data_size =
sizeof(ConnectionMessage_data_t);
171 data = (ConnectionMessage_data_t *)
data_ptr;
189 data = (ConnectionMessage_data_t *)
data_ptr;
void * data_ptr
Pointer to local memory storage.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_host() const
Get maximum length of host value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void * data_ptr
Pointer to memory that contains local data.
message_data_ts_t * data_ts
data timestamp aliasing pointer
@ IFT_UINT16
16 bit unsigned integer field
const char * type() const
Get type of interface.
ConnectionMessage()
Constructor.
size_t maxlenof_port() const
Get maximum length of port value.
~ConnectionMessage()
Destructor.
uint16_t port() const
Get port value.
void set_host(const char *new_host)
Set host value.
Timestamp data, must be present and first entries for each interface data structs!...
bool data_changed
Indicator if data has changed.
Fawkes library namespace.
void set_hash(unsigned char *ihash)
Set hash.
unsigned int data_size
Size of memory needed to hold all data.
EclipseDebuggerInterface Fawkes BlackBoard Interface.
Base class for all Fawkes BlackBoard interfaces.
char * host() const
Get host value.
void set_port(const uint16_t new_port)
Set port value.
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.
virtual Message * create_message(const char *type) const
Create message based on type name.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
ConnectionMessage Fawkes BlackBoard Interface Message.
void add_messageinfo(const char *name)
Add an entry to the message info list.
virtual Message * clone() const
Clone this message.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
bool change_field(FieldT &field, const DataT &value)
Set a field and return whether it changed.