VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtSchemaManager Class Reference

The schema manager is responsible to managing all of the schemas in the system. More...

Public Types

enum  SchemaTypes { ModelDefinitionSchema, VisualDefinitionSchema }
 
typedef std::set< intPossibleSchemaValues
 

Public Member Functions

virtual ~DtSchemaManager ()
 DTOR. More...
 
virtual void addSchemaEntry (const makArchives::DtSchemaEntry &schema)
 Add a new model definition schema. More...
 
virtual bool removeSchemaEntry (const std::string &)
 Removes the schema from the specified schema and sends out a schemaRemoved signal. More...
 
virtual
makArchives::DtSchemaEntry
findSchemaEntry (const std::string &schemaName)
 Add a schema. More...
 
virtual const
makArchives::DtSchemaEntry
findSchemaEntry (const std::string &schemaName) const
 Add a schema. More...
 
virtual void merge (const makArchives::DtSchema &schema)
 Merges the schema supplied into the managed schema. More...
 
virtual void replace (const makArchives::DtSchema &schema)
 Replaces the managed schema with the schema supplied. More...
 
virtual void exportSchemas (const std::set< std::string > &schemaNames, const std::string &filename) const
 Export the named schemas to a file. More...
 
virtual bool renameSchemaEntry (const std::string &oldName, const std::string &newName)
 Renames the schema found in the schema to the new name and sends out signal_schemaRenamed signal. More...
 
const makArchives::DtSchemaschema () const
 Returns the managed schema. More...
 
virtual std::string schemaName () const
 Returns the schema name. More...
 
virtual bool renameSchemaParameter (const std::string &schema, const std::string &oldName, const std::string &newName)
 Renames the parameter in the specified schema. More...
 
virtual void addPossibleSchemaValue (int schema)
 Adds a value that can possible be used as a schema parameter. More...
 
virtual PossibleSchemaValues possibleSchemaValues () const
 Returns possible schema parameter values. More...
 
virtual void removePossibleSchemaValue (int schema)
 Removes a value that can possible be used as a schema parameter. More...
 
virtual void loadSchemas (bool saveAfterLoad=false)
 Load all schemas from the schema path. More...
 
virtual bool loadSchema (const std::string &filepath, bool saveAfterLoad=false)
 Load the specified schema and overwrite the current schema with it. More...
 
virtual void saveSchema ()
 Save out the current schema to its default file. More...
 
virtual void saveSchemaAs (const std::string &filepath)
 Save the schema to a file. More...
 
virtual bool importSchema (const std::string &filepath, bool mergeSchema)
 Import the specified schema file; overwrites the current schema or merges into it depending on the value of mergeSchema. More...
 
virtual DtSchemaSettingsBackupsettingsBackup ()
 Get the backup object. More...
 
virtual void backup ()
 Back up the schema settings. More...
 

Protected Member Functions

 DtSchemaManager (DtDe &)
 CTOR. More...
 
virtual void saveSchema (const makArchives::DtSchema &schema, const std::string &file) const
 Save the specified schema to a file. More...
 

Protected Attributes

DtDemyDe
 Reference to the display engine. More...
 
DtSchemaManagerSignalermySignaler
 Signaler to signal other classes when schemas change. More...
 
makArchives::DtSchema myModelDefinitionSchema
 Model definition schema. More...
 
DtSchemaSettingsBackupmyModelDefinitionSchemaBackup
 Backup for model definition schema. More...
 
PossibleSchemaValues myPossibleSchemaValues
 List of possible value types that can go in a schema. More...
 

Friends

class DtSchemaManagerCreator
 

Detailed Description

The schema manager is responsible to managing all of the schemas in the system.

It will save and load definitions to/from files.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
ModelDefinitionSchema 
VisualDefinitionSchema 

Constructor & Destructor Documentation

virtual makVrv::DtSchemaManager::~DtSchemaManager ( )
virtual

DTOR.

makVrv::DtSchemaManager::DtSchemaManager ( DtDe )
protected

CTOR.

Member Function Documentation

virtual void makVrv::DtSchemaManager::addSchemaEntry ( const makArchives::DtSchemaEntry schema)
virtual

Add a new model definition schema.

virtual bool makVrv::DtSchemaManager::removeSchemaEntry ( const std::string &  )
virtual

Removes the schema from the specified schema and sends out a schemaRemoved signal.

virtual makArchives::DtSchemaEntry* makVrv::DtSchemaManager::findSchemaEntry ( const std::string &  schemaName)
virtual

Add a schema.

If schemaType is -1, searches all schemas and returns the first occurance

virtual const makArchives::DtSchemaEntry* makVrv::DtSchemaManager::findSchemaEntry ( const std::string &  schemaName) const
virtual

Add a schema.

If schemaType is -1, searches all schemas and returns the first occurance

virtual void makVrv::DtSchemaManager::merge ( const makArchives::DtSchema schema)
virtual

Merges the schema supplied into the managed schema.

virtual void makVrv::DtSchemaManager::replace ( const makArchives::DtSchema schema)
virtual

Replaces the managed schema with the schema supplied.

virtual void makVrv::DtSchemaManager::exportSchemas ( const std::set< std::string > &  schemaNames,
const std::string &  filename 
) const
virtual

Export the named schemas to a file.

virtual bool makVrv::DtSchemaManager::renameSchemaEntry ( const std::string &  oldName,
const std::string &  newName 
)
virtual

Renames the schema found in the schema to the new name and sends out signal_schemaRenamed signal.

Return values
trueif schema is renamed
const makArchives::DtSchema& makVrv::DtSchemaManager::schema ( ) const

Returns the managed schema.

virtual std::string makVrv::DtSchemaManager::schemaName ( ) const
virtual

Returns the schema name.

virtual bool makVrv::DtSchemaManager::renameSchemaParameter ( const std::string &  schema,
const std::string &  oldName,
const std::string &  newName 
)
virtual

Renames the parameter in the specified schema.

Sends out a signal on rename.

Return values
trueif successfully renamed.
virtual void makVrv::DtSchemaManager::addPossibleSchemaValue ( int  schema)
virtual

Adds a value that can possible be used as a schema parameter.

virtual PossibleSchemaValues makVrv::DtSchemaManager::possibleSchemaValues ( ) const
virtual

Returns possible schema parameter values.

virtual void makVrv::DtSchemaManager::removePossibleSchemaValue ( int  schema)
virtual

Removes a value that can possible be used as a schema parameter.

virtual void makVrv::DtSchemaManager::loadSchemas ( bool  saveAfterLoad = false)
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 bool makVrv::DtSchemaManager::loadSchema ( const std::string &  filepath,
bool  saveAfterLoad = false 
)
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 void makVrv::DtSchemaManager::saveSchema ( )
virtual

Save out the current schema to its default file.

virtual void makVrv::DtSchemaManager::saveSchemaAs ( const std::string &  filepath)
virtual

Save the schema to a file.

virtual bool makVrv::DtSchemaManager::importSchema ( const std::string &  filepath,
bool  mergeSchema 
)
virtual

Import the specified schema file; overwrites the current schema or merges into it depending on the value of mergeSchema.

Return values
Returnsfalse if the file could not be loaded
virtual DtSchemaSettingsBackup& makVrv::DtSchemaManager::settingsBackup ( )
virtual

Get the backup object.

virtual void makVrv::DtSchemaManager::backup ( )
virtual

Back up the schema settings.

virtual void makVrv::DtSchemaManager::saveSchema ( const makArchives::DtSchema schema,
const std::string &  file 
) const
protectedvirtual

Save the specified schema to a file.

Friends And Related Function Documentation

friend class DtSchemaManagerCreator
friend

Member Data Documentation

DtDe& makVrv::DtSchemaManager::myDe
protected

Reference to the display engine.

DtSchemaManagerSignaler& makVrv::DtSchemaManager::mySignaler
protected

Signaler to signal other classes when schemas change.

makArchives::DtSchema makVrv::DtSchemaManager::myModelDefinitionSchema
protected

Model definition schema.

DtSchemaSettingsBackup* makVrv::DtSchemaManager::myModelDefinitionSchemaBackup
protected

Backup for model definition schema.

PossibleSchemaValues makVrv::DtSchemaManager::myPossibleSchemaValues
protected

List of possible value types that can go in a schema.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)