![]() |
VR-Forces 5.0.2 Developer's Guide
|
The schema manager is responsible to managing all of the schemas in the system. It will save and load definitions to/from files.
Public Types | |
| enum | SchemaTypes { ModelDefinitionSchema, VisualDefinitionSchema } |
| typedef std::set< int > | PossibleSchemaValues |
Public Member Functions | |
| virtual | ~DtSchemaManager () |
| virtual void | addSchemaEntry (const makArchives::DtSchemaEntry &schema) |
| virtual bool | removeSchemaEntry (const std::string &) |
| virtual makArchives::DtSchemaEntry * | findSchemaEntry (const std::string &schemaName) |
| virtual const makArchives::DtSchemaEntry * | findSchemaEntry (const std::string &schemaName) const |
| virtual void | merge (const makArchives::DtSchema &schema) |
| virtual void | replace (const makArchives::DtSchema &schema) |
| virtual void | exportSchemas (const std::set< std::string > &schemaNames, const std::string &filename) const |
| virtual bool | renameSchemaEntry (const std::string &oldName, const std::string &newName) |
| const makArchives::DtSchema & | schema () const |
| virtual std::string | schemaName () const |
| virtual bool | renameSchemaParameter (const std::string &schema, const std::string &oldName, const std::string &newName) |
| virtual void | addPossibleSchemaValue (int schema) |
| virtual PossibleSchemaValues | possibleSchemaValues () const |
| virtual void | removePossibleSchemaValue (int schema) |
| virtual void | loadSchemas (bool saveAfterLoad=false) |
| virtual bool | loadSchema (const std::string &filepath, bool saveAfterLoad=false) |
| virtual void | saveSchema () |
| virtual void | saveSchemaAs (const std::string &filepath) |
| virtual bool | importSchema (const std::string &filepath, bool mergeSchema) |
| virtual DtSchemaSettingsBackup & | settingsBackup () |
| virtual void | backup () |
Protected Member Functions | |
| DtSchemaManager (DtDe &) | |
| virtual void | saveSchema (const makArchives::DtSchema &schema, const std::string &file) const |
Friends | |
| class | DtSchemaManagerCreator |
| typedef std::set<int> makVrv::DtSchemaManager::PossibleSchemaValues |
|
virtual |
DTOR.
|
protected |
CTOR.
|
virtual |
Add a new model definition schema.
|
virtual |
Removes the schema from the specified schema and sends out a schemaRemoved signal.
|
virtual |
Add a schema. If schemaType is -1, searches all schemas and returns the first occurance.
|
virtual |
Add a schema. If schemaType is -1, searches all schemas and returns the first occurance.
|
virtual |
Merges the schema supplied into the managed schema.
|
virtual |
Replaces the managed schema with the schema supplied.
|
virtual |
Export the named schemas to a file.
|
virtual |
Renames the schema found in the schema to the new name and sends out signal_schemaRenamed signal.
| true | if schema is renamed |
| const makArchives::DtSchema& makVrv::DtSchemaManager::schema | ( | ) | const |
Returns the managed schema.
|
virtual |
Returns the schema name.
|
virtual |
Renames the parameter in the specified schema. Sends out a signal on rename.
| true | if successfully renamed. |
|
virtual |
Adds a value that can possible be used as a schema parameter.
|
virtual |
Returns possible schema parameter values.
|
virtual |
Removes a value that can possible be used as a schema parameter.
|
virtual |
Load all schemas from the schema path. If saveAfterLoad is true will save out the schema loaded with any changes that might have been applied during load.
|
virtual |
Load the specified schema and overwrite the current schema with it. If saveAfterLoad is true will save out the schema loaded with any changes that might have been applied during load.
|
virtual |
Save out the current schema to its default file.
|
virtual |
Save the schema to a file.
|
virtual |
Import the specified schema file; overwrites the current schema or merges into it depending on the value of mergeSchema.
| Returns | false if the file could not be loaded |
|
virtual |
Get the backup object.
|
virtual |
Back up the schema settings.
|
protectedvirtual |
Save the specified schema to a file.
|
friend |
|
protected |
Reference to the display engine.
|
protected |
Signaler to signal other classes when schemas change.
|
protected |
Model definition schema.
|
protected |
Backup for model definition schema.
|
protected |
List of possible value types that can go in a schema.