1#ifndef __Identifier_h___
2#define __Identifier_h___
55 virtual void set (
const std::string&
id);
58 virtual void clear ();
90 virtual void show ()
const;
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.
virtual std::string getString() const
Provide a string form of the identifier - hexadecimal.
virtual bool operator<(const Identifier &other) const
virtual bool operator!=(const Identifier &other) const
virtual bool is_valid() const
Check if id is in a valid state.
virtual void clear()
Reset to invalid state.
virtual bool operator==(const Identifier &other) const
virtual bool operator>(const Identifier &other) const
virtual void show() const
Print out in hex form.
Identifier()
Default constructor.
value_type get_value() const
Identifier & operator&=(value_type value)
virtual void set(const std::string &id)
build from a string form - hexadecimal
Identifier & operator=(value_type value)
Assignment operator.