24 #ifndef __INTERFACE_INTERFACE_INFO_H_ 25 #define __INTERFACE_INTERFACE_INFO_H_ 39 const std::list<std::string> &
readers,
const std::string &
writer,
44 const char *
type()
const;
45 const char *
id()
const;
46 const unsigned char *
hash()
const;
50 const std::list<std::string> &
readers()
const;
51 const std::string &
writer()
const;
52 unsigned int serial()
const;
60 unsigned char *__hash;
62 unsigned int __num_readers;
63 unsigned int __serial;
65 std::list<std::string> __readers;
73 void append(
const char *
type,
const char *
id,
const unsigned char *
hash,
75 const std::list<std::string> &
readers,
const std::string &
writer,
const char * type() const
Get interface type.
Fawkes library namespace.
const char * id() const
Get interface ID.
bool operator<(const InterfaceInfo &ii) const
< operator This compares two interface infos with respect to the less than (<) relation considering t...
A class for handling time.
const unsigned char * hash() const
Get interface version hash.
const Time * timestamp() const
Get interface timestamp.
Interface information list.
InterfaceInfo(const char *type, const char *id, const unsigned char *hash, unsigned int serial, bool has_writer, unsigned int num_readers, const std::list< std::string > &readers, const std::string &writer, const Time *timestamp)
Constructor.
const std::string & writer() const
Get name of writer on interface.
const std::list< std::string > & readers() const
Get readers of interface.
bool has_writer() const
Check if there is a writer.
unsigned int serial() const
Get interface instance serial.
~InterfaceInfo()
Destructor.
unsigned int num_readers() const
Get number of readers.
std::string hash_printable() const
Get interface version hash in printable format.