![]() |
VR-Forces 4.0.4 Class Documentation
|
Collection of DtSchemaEntry objects Used to archive model definition schemas. More...
Public Types | |
| typedef std::vector < DtSchemaEntry > | SchemaEntries |
Public Member Functions | |
| DtSchema () | |
| CTOR. | |
| DtSchema (const std::string &name) | |
| CTOR. | |
| DtSchema (const DtSchema ©) | |
| CopyCTOR. | |
| ~DtSchema () | |
| DTOR. | |
| DtSchema & | operator= (const DtSchema ©) |
| Assignment Op. | |
| const std::string & | name () const |
| Get the schema's name. | |
| void | setName (const std::string &n) |
| Get the schema's name. | |
| virtual void | addSchemaEntry (const DtSchemaEntry &entry) |
| Add a schema entry. | |
| virtual bool | removeSchemaEntry (const std::string name) |
| Remove a schema entry. | |
| const SchemaEntries & | schemaEntries () const |
| Get the schema entries. | |
| void | clear () |
| Clear the schema entries. | |
| void | setSchemaEntries (const SchemaEntries &e) |
| Set the schema entries. | |
| DtSchemaEntry * | findSchemaEntry (const std::string name) |
| a schema entry by name. | |
| const DtSchemaEntry * | findSchemaEntry (const std::string name) const |
| virtual void | merge (const DtSchema &rhs) |
| Merges contents of supplied schema into this one. | |
| virtual bool | renameSchemaEntry (const std::string &oldName, const std::string &newName) |
| Renames the schema to the new name. Returns true if schema is renamed. | |
Protected Member Functions | |
| template<typename Archive > | |
| void | serialize (Archive &ar, unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. | |
Static Protected Member Functions | |
| static bool | findSchemaEntryFunction (const DtSchemaEntry ¶meter, const std::string &name) |
| Predicate for finding a schema entry in a collection. | |
Protected Attributes | |
| std::string | myName |
| SchemaEntries | mySchemaEntries |
Friends | |
| class | boost::serialization::access |
Collection of DtSchemaEntry objects Used to archive model definition schemas.
| typedef std::vector<DtSchemaEntry> makArchives::DtSchema::SchemaEntries |
CTOR.
| makArchives::DtSchema::DtSchema | ( | const std::string & | name | ) |
CTOR.
| makArchives::DtSchema::DtSchema | ( | const DtSchema & | copy | ) |
CopyCTOR.
DTOR.
| const std::string& makArchives::DtSchema::name | ( | void | ) | const [inline] |
Get the schema's name.
| void makArchives::DtSchema::setName | ( | const std::string & | n | ) | [inline] |
Get the schema's name.
| virtual void makArchives::DtSchema::addSchemaEntry | ( | const DtSchemaEntry & | entry | ) | [virtual] |
Add a schema entry.
| virtual bool makArchives::DtSchema::removeSchemaEntry | ( | const std::string | name | ) | [virtual] |
Remove a schema entry.
Returns whether the entry was removed successfully.
| const SchemaEntries& makArchives::DtSchema::schemaEntries | ( | ) | const [inline] |
Get the schema entries.
| void makArchives::DtSchema::clear | ( | ) | [inline] |
Clear the schema entries.
| void makArchives::DtSchema::setSchemaEntries | ( | const SchemaEntries & | e | ) | [inline] |
Set the schema entries.
| DtSchemaEntry* makArchives::DtSchema::findSchemaEntry | ( | const std::string | name | ) |
a schema entry by name.
Warning\ the pointer will be invalid if you perform any Additions or Removals.
| const DtSchemaEntry* makArchives::DtSchema::findSchemaEntry | ( | const std::string | name | ) | const |
| virtual void makArchives::DtSchema::merge | ( | const DtSchema & | rhs | ) | [virtual] |
Merges contents of supplied schema into this one.
Merge will replace existing schemas with schemas of like names or add new schemas that do not exist. Will not delete schemas that do not exist in supplied schema
| virtual bool makArchives::DtSchema::renameSchemaEntry | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) | [virtual] |
Renames the schema to the new name. Returns true if schema is renamed.
| void makArchives::DtSchema::serialize | ( | Archive & | ar, |
| unsigned int | version | ||
| ) | [inline, protected] |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
| static bool makArchives::DtSchema::findSchemaEntryFunction | ( | const DtSchemaEntry & | parameter, |
| const std::string & | name | ||
| ) | [static, protected] |
Predicate for finding a schema entry in a collection.
friend class boost::serialization::access [friend] |
std::string makArchives::DtSchema::myName [protected] |
SchemaEntries makArchives::DtSchema::mySchemaEntries [protected] |