#include <asset.hpp>

Public Member Functions | |
| int | compare (const Ident &other) const |
| ordering of Assets is based on the ordering of Ident tuples, which are supposed to be unique. | |
| Ident (const string &n, const Category &cat, const string &o="lumi", const uint ver=1) | |
| operator string () const | |
| bool | operator< (const Ident &oi) const |
| bool | operator== (const Ident &oi) const |
Public Attributes | |
| asset::Category | category |
| primary tree like classification of the asset. | |
| string | name |
| element ID, comprehensible but sanitized. | |
| const string | org |
| origin or authorship id. | |
| const uint | version |
| version number of the thing or concept represented by this asset. | |
Definition at line 149 of file asset.hpp.
| int asset::Asset::Ident::compare | ( | const Ident & | other | ) | const [inline] |
By using our customized lumiera::P as smart ptr, comparison on P<Asset> ptrs will be automatically forwarded to the Asset comparison operators.
Definition at line 309 of file asset.hpp.
Referenced by operator==().
00310 { 00311 int res; 00312 if (0 != (res=category.compare (oi.category))) return res; 00313 if (0 != (res=org.compare (oi.org))) return res; 00314 return name.compare (oi.name); 00315 }

| bool asset::Asset::Ident::operator== | ( | const Ident & | oi | ) | const [inline] |
| string asset::Asset::Ident::name |
The tuple (category, name, org) is unique.
Definition at line 155 of file asset.hpp.
Referenced by asset::ProcPatt::newCopy(), asset::Struct::queryPipeID(), and asset::Struct::queryStreamID().
| const string asset::Asset::Ident::org |
| const uint asset::Asset::Ident::version |
Of each unique tuple (name, category, org) there will be only one version in the whole system. Version 0 is reserved for internal purposes. Versions are considered to be ordered, and any higher version is supposed to be fully backwards compatible to all previous versions.
1.5.5