24 #ifndef _INTERFACE_INTERFACE_INFO_H_ 25 #define _INTERFACE_INTERFACE_INFO_H_ 39 const unsigned char *
hash,
43 const std::list<std::string> &
readers,
44 const std::string &
writer,
49 const char *
type()
const;
50 const char *
id()
const;
51 const unsigned char *
hash()
const;
55 const std::list<std::string> &
readers()
const;
56 const std::string &
writer()
const;
57 unsigned int serial()
const;
66 unsigned char * hash_;
68 unsigned int num_readers_;
71 std::list<std::string> readers_;
78 void append(
const char * type,
80 const unsigned char * hash,
83 unsigned int num_readers,
84 const std::list<std::string> &readers,
85 const std::string & writer,
86 const Time & timestamp);
const char * type() const
Get interface type.
std::string hash_printable() const
Get interface version hash in printable format.
Fawkes library namespace.
unsigned int num_readers() const
Get number of readers.
InterfaceInfo & operator=(const InterfaceInfo &i)
Assignment operator.
const unsigned char * hash() const
Get interface version hash.
bool has_writer() const
Check if there is a writer.
A class for handling time.
bool operator<(const InterfaceInfo &ii) const
< operator This compares two interface infos with respect to the less than (<) relation considering t...
unsigned int serial() const
Get interface instance serial.
const std::list< std::string > & readers() const
Get readers of interface.
Interface information list.
const std::string & writer() const
Get name of writer on interface.
const char * id() const
Get interface ID.
void append(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 ×tamp)
Append an interface info.
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.
~InterfaceInfo()
Destructor.
const Time * timestamp() const
Get interface timestamp.