The identification for something that is unique across all peers.
More...
#include <Identity.hpp>
|
| LanguageTaggedStringSet & | getNames () |
| |
| void | setNames (const LanguageTaggedStringSet &n) |
| |
| void | setUuid (const boost::uuids::uuid &u) |
| |
|
| LanguageTaggedStringSet | name |
| | A name for this item intended for user presentation. More...
|
| |
| boost::uuids::uuid | uuid |
| | A unique identifier that is valid across all peers. More...
|
| |
The identification for something that is unique across all peers.
- Author
- Jeff Jackowski
Definition at line 19 of file Identity.hpp.
◆ Identity() [1/5]
| duds::Identity::Identity |
( |
| ) |
|
- Note
- This sets uuid to all zeros, an invalid id. This is useful to avoid generating UUID when a specific one will be set later.
Referenced by getNames().
◆ Identity() [2/5]
| duds::Identity::Identity |
( |
bool |
genUuid | ) |
|
◆ Identity() [3/5]
| duds::Identity::Identity |
( |
const boost::uuids::uuid & |
u | ) |
|
◆ Identity() [4/5]
| duds::Identity::Identity |
( |
const LanguageTaggedStringSet & |
n, |
|
|
bool |
genUuid = false |
|
) |
| |
◆ Identity() [5/5]
| duds::Identity::Identity |
( |
const boost::uuids::uuid & |
u, |
|
|
const LanguageTaggedStringSet & |
n |
|
) |
| |
◆ getName()
| std::string duds::Identity::getName |
( |
| ) |
const |
Returns the name for the current locale.
Referenced by getNames().
◆ getNames() [1/2]
| LanguageTaggedStringSet& duds::Identity::getNames |
( |
| ) |
|
|
inlineprotected |
◆ getNames() [2/2]
| const LanguageTaggedStringSet& duds::Identity::getNames |
( |
| ) |
const |
|
inline |
Returns the set of names for all locales and languages.
Definition at line 53 of file Identity.hpp.
◆ getUuid()
| const boost::uuids::uuid& duds::Identity::getUuid |
( |
| ) |
const |
|
inline |
Returns the object's unique identifier.
Definition at line 47 of file Identity.hpp.
◆ operator!=()
| bool duds::Identity::operator!= |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ operator<()
| bool duds::Identity::operator< |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ operator<=()
| bool duds::Identity::operator<= |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ operator==()
| bool duds::Identity::operator== |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ operator>()
| bool duds::Identity::operator> |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ operator>=()
| bool duds::Identity::operator>= |
( |
const Identity & |
i | ) |
const |
|
inline |
◆ setNames()
| void duds::Identity::setNames |
( |
const LanguageTaggedStringSet & |
n | ) |
|
|
protected |
◆ setUuid()
| void duds::Identity::setUuid |
( |
const boost::uuids::uuid & |
u | ) |
|
|
protected |
◆ name
| LanguageTaggedStringSet duds::Identity::name |
|
private |
A name for this item intended for user presentation.
Definition at line 27 of file Identity.hpp.
Referenced by getNames().
◆ uuid
| boost::uuids::uuid duds::Identity::uuid |
|
private |
The documentation for this class was generated from the following file: