1#ifndef __Identifier_h___
2#define __Identifier_h___
55 void set (
const std::string&
id);
95 max_value = 0xFFFFFFFF
116 : m_id(other.get_value())
173 return (m_id == other.get_value());
180 return (m_id != other.get_value());
187 return (m_id < other.get_value());
194 return (m_id > other.get_value());
200 return (!(max_value == m_id));
std::ostream & operator<<(std::ostream &os, const Identifier &Id)
Identifier & operator|=(value_type value)
Bitwise operations.
std::string getString() const
Provide a string form of the identifier - hexadecimal.
bool operator<(const Identifier &other) const
bool operator!=(const Identifier &other) const
bool is_valid() const
Check if id is in a valid state.
void clear()
Reset to invalid state.
bool operator==(const Identifier &other) const
bool operator>(const Identifier &other) const
void show() const
Print out in hex form.
Identifier()
Default constructor.
value_type get_value() const
Identifier & operator&=(value_type value)
void set(const std::string &id)
build from a string form - hexadecimal
Identifier & operator=(value_type value)
Assignment operator.