Class Gid
Defined in File gid.hpp
Class Documentation
-
class Gid
Unique ID (GID).
Wrapper for unique ID (aka GID).
Public Functions
-
explicit Gid(const GidValue value)
Constructor.
To create a new GID, see Gid::new().
- Parameters:
value – the value for this GID
-
virtual ~Gid()
-
const std::string &to_string() const
Get the GID as a string.
This string can be converted back to a GID using from_string().
Public Static Functions
-
static std::optional<Gid> from_string(const std::string &str)
Get a GID object from a string.
The string should have been generated using to_string().
- Returns:
the GID object, or
std::nullopt
if it fails
-
explicit Gid(const GidValue value)