Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
InterfaceInfo (const char *type, const char *id, const unsigned char *hash, unsigned int serial, bool has_writer, unsigned int num_readers) | |
Constructor. More... | |
InterfaceInfo (const InterfaceInfo &i) | |
Copy constructor. More... | |
~InterfaceInfo () | |
Destructor. More... | |
const char * | type () const |
Get interface type. More... | |
const char * | id () const |
Get interface ID. More... | |
const unsigned char * | hash () const |
Get interface version hash. More... | |
bool | has_writer () const |
Check if there is a writer. More... | |
unsigned int | num_readers () const |
Get number of readers. More... | |
unsigned int | serial () const |
Get interface instance serial. More... | |
bool | operator< (const InterfaceInfo &ii) const |
< operator This compares two interface infos with respect to the less than (<) relation considering the type and id of an interface. More... | |
Interface info.
This class holds information about a specific interface.
Definition at line 31 of file interface_info.h.
fawkes::InterfaceInfo::InterfaceInfo | ( | const char * | type, |
const char * | id, | ||
const unsigned char * | hash, | ||
unsigned int | serial, | ||
bool | has_writer, | ||
unsigned int | num_readers | ||
) |
Constructor.
type | type of the interface |
id | id of the interface |
hash | version hash |
has_writer | true if there is a writer, false otherwise |
num_readers | number of readers |
serial | instance serial |
Definition at line 47 of file interface_info.cpp.
References has_writer(), num_readers(), and serial().
fawkes::InterfaceInfo::InterfaceInfo | ( | const InterfaceInfo & | i | ) |
fawkes::InterfaceInfo::~InterfaceInfo | ( | ) |
Destructor.
Definition at line 76 of file interface_info.cpp.
bool fawkes::InterfaceInfo::has_writer | ( | ) | const |
Check if there is a writer.
Definition at line 118 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface(), fawkes::InterfaceChooserDialog::init_row(), and InterfaceInfo().
const unsigned char * fawkes::InterfaceInfo::hash | ( | ) | const |
Get interface version hash.
Definition at line 108 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface().
const char * fawkes::InterfaceInfo::id | ( | ) | const |
Get interface ID.
Definition at line 98 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface(), fawkes::MultiInterfaceChooserDialog::init_row(), and fawkes::InterfaceChooserDialog::init_row().
unsigned int fawkes::InterfaceInfo::num_readers | ( | ) | const |
Get number of readers.
Definition at line 128 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface(), fawkes::InterfaceChooserDialog::init_row(), and InterfaceInfo().
bool fawkes::InterfaceInfo::operator< | ( | const InterfaceInfo & | ii | ) | const |
< operator This compares two interface infos with respect to the less than (<) relation considering the type and id of an interface.
An interface info A is less than an interface info B (A < B) iff (A.type < B.type) or ((A.type == B.type) && A.id < B.id).
ii | interface info to compare this to |
ii
, false otherwise Definition at line 153 of file interface_info.cpp.
unsigned int fawkes::InterfaceInfo::serial | ( | ) | const |
Get interface instance serial.
Definition at line 138 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface(), and InterfaceInfo().
const char * fawkes::InterfaceInfo::type | ( | ) | const |
Get interface type.
Definition at line 88 of file interface_info.cpp.
Referenced by fawkes::BlackBoardInterfaceListContent::append_interface(), fawkes::MultiInterfaceChooserDialog::init_row(), and fawkes::InterfaceChooserDialog::init_row().