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

This class extends the component system database to add a bit more information that the simulation object editor needs. More...

Inheritance diagram for DtSimulationObjectEditorComponentSystemDatabase:
Inheritance graph
[legend]

Classes

struct  AdditionalSystemInformation
 

Public Member Functions

 DtSimulationObjectEditorComponentSystemDatabase ()
 
virtual ~DtSimulationObjectEditorComponentSystemDatabase ()
 
virtual bool loadSystemDefinition (const DtFilename &definitionFilename, const DtVariableBindingsList &variableBindings, DtSimulationModelSet *sms, bool inMasterSMS, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths())
 Loads the system definition specified, and adds the system to the database. More...
 
virtual bool isInMasterSMS (const DtFilename &definitionFilename) const
 Returns true if the given system is in the master SMS. More...
 
virtual bool isInMasterSMS (const DtComponentSystemDefinition *) const
 
virtual void setIsInMasterSMS (const DtComponentSystemDefinition *def, bool b)
 
virtual void setIsInMasterSMS (const DtFilename &definitionFilename, bool b)
 
virtual bool isDeleted (const DtFilename &definitionFilename) const
 Returns true if the given system has been scheduled for deletion. More...
 
virtual bool isDeleted (const DtComponentSystemDefinition *) const
 
virtual void setIsNew (const DtComponentSystemDefinition *def, bool)
 Returns true if the given system has been newly created and not yet saved. More...
 
virtual void setIsNew (const DtFilename &, bool)
 
virtual bool isNew (const DtFilename &definitionFilename) const
 
virtual bool isNew (const DtComponentSystemDefinition *) const
 
virtual void changeSystemFilename (const DtFilename &oldFilename, const DtFilename &newFilename)
 Changes the filename for the given system to the new filename. More...
 
virtual bool removeSystem (const DtFilename &definitionFilename)
 Removes the specified system from the database. More...
 
virtual DtSimulationModelSetsimulationModelSetFor (const DtFilename &definitionFilename) const
 Returns the simulation model set the system is in. More...
 
virtual DtSimulationModelSetsimulationModelSetFor (const DtComponentSystemDefinition *) const
 
virtual void setSimulationModelSet (const DtComponentSystemDefinition *def, DtSimulationModelSet *)
 
virtual void setSimulationModelSet (const DtFilename &, DtSimulationModelSet *)
 
virtual bool saveSystem (const DtFilename &systemFile)
 Saves the system that is represented by the given filename. More...
 
virtual void setDeleted (const DtComponentSystemDefinition *def, bool)
 Sets whether or not this system is deleted. More...
 
virtual void setDeleted (const DtFilename &, bool)
 
virtual DtVariableBindingsListvariableBindingsFor (const DtComponentSystemDefinition *)
 
virtual const
DtVariableBindingsList
variableBindingsFor (const DtComponentSystemDefinition *) const
 
virtual std::map< DtString,
DtString
variableSubstitutionsFor (const DtComponentSystemDefinition *) const
 
virtual DtVariableBindingsListvariableBindingsFor (const DtFilename &)
 
virtual const
DtVariableBindingsList
variableBindingsFor (const DtFilename &) const
 
virtual
DtComponentSystemDefinition
addSystem (const DtFilename &, const DtComponentSystemDefinition &)
 Adds the system given the filename and component definition, which will be cloned and then taken control of by this database. More...
 
virtual
DtComponentSystemDefinition
addSystem (const DtString &, const DtFilename &)
 Creates a new blank system with the given name and returns the newly created definition. More...
 
virtual void resetVariableBindings (const DtComponentSystemDefinition *)
 Resets the variable bindings based on the given system definition. More...
 
virtual void resetVariableBindings (const DtFilename &)
 
virtual bool anyNew () const
 
virtual bool anyDeleted () const
 
- Public Member Functions inherited from DtComponentSystemDatabase
 DtComponentSystemDatabase ()
 
virtual ~DtComponentSystemDatabase ()
 
virtual bool loadSystemDefinition (const DtFilename &definitionFilename, const DtVariableBindingsList &variableBindings, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths())
 Loads the system definition specified, and adds the system to the database. More...
 
virtual DtSystemDefinitionInfoList findSystemsForCategoryAndSRType (const DtString &category, const DtString &stateRepType) const
 
virtual const
DtComponentSystemDefinition
findSystemByFilename (const DtFilename &filename) const
 
virtual
DtComponentSystemDefinition
findSystemByFilename (const DtFilename &filename)
 
virtual const
DtComponentSystemDefinition
findSystemBySystemName (const DtString &systemName) const
 
virtual
DtComponentSystemDefinition
findSystemBySystemName (const DtString &systemName)
 
virtual bool replaceSystem (const DtFilename &definitionFilename, const DtVariableBindingsList &variableBindings)
 Replaces the system specified by the filename in the list. More...
 
virtual bool saveSystem (const DtComponentSystemDefinition *)
 Save the given system descriptor the filename that is associated with it. More...
 
virtual bool removeSystem (const DtComponentSystemDefinition *systemDefinition)
 Removes the specified system from the database. More...
 
virtual void findAllVariableBindings (DtVariableBindingsList &list, const DtReaderWriter *rw) const
 Returns all the "varible-bindings" sections in the supplied list. More...
 
virtual bool operator== (const DtComponentSystemDatabase &) const
 
virtual bool operator!= (const DtComponentSystemDatabase &rhs) const
 
const DtSystemDefinitionMapsystemDefinitions () const
 
DtSystemDefinitionMapsystemDefinitions ()
 This class owns the pointers to the system definitions so do not hold onto pointers. Use this for modification only. More...
 
virtual DtFilename systemFilename (const DtComponentSystemDefinition *) const
 Returns the filename for the given component definition. More...
 

Protected Types

typedef std::map< DtFilename,
AdditionalSystemInformation
AdditionalSystemInformationMap
 

Protected Attributes

AdditionalSystemInformationMap myAdditionalSystemInformationMap
 
DtVariableBindingsList myEmptyBindings
 
- Protected Attributes inherited from DtComponentSystemDatabase
DtSystemDefinitionMap mySystemDefinitions
 

Private Member Functions

 DtSimulationObjectEditorComponentSystemDatabase (const DtSimulationObjectEditorComponentSystemDatabase &orig)
 Not implemented. More...
 
DtSimulationObjectEditorComponentSystemDatabaseoperator= (const DtSimulationObjectEditorComponentSystemDatabase &orig)
 

Detailed Description

This class extends the component system database to add a bit more information that the simulation object editor needs.

Member Typedef Documentation

Constructor & Destructor Documentation

DtSimulationObjectEditorComponentSystemDatabase::DtSimulationObjectEditorComponentSystemDatabase ( const DtSimulationObjectEditorComponentSystemDatabase orig)
private

Not implemented.

DtSimulationObjectEditorComponentSystemDatabase::DtSimulationObjectEditorComponentSystemDatabase ( )
virtual DtSimulationObjectEditorComponentSystemDatabase::~DtSimulationObjectEditorComponentSystemDatabase ( )
virtual

Member Function Documentation

DtSimulationObjectEditorComponentSystemDatabase& DtSimulationObjectEditorComponentSystemDatabase::operator= ( const DtSimulationObjectEditorComponentSystemDatabase orig)
private
virtual bool DtSimulationObjectEditorComponentSystemDatabase::loadSystemDefinition ( const DtFilename &  definitionFilename,
const DtVariableBindingsList variableBindings,
DtSimulationModelSet sms,
bool  inMasterSMS,
const DtReaderWriter::SearchPaths searchPaths = DtReaderWriter::SearchPaths() 
)
virtual

Loads the system definition specified, and adds the system to the database.

Returns
True on success.
virtual bool DtSimulationObjectEditorComponentSystemDatabase::isInMasterSMS ( const DtFilename &  definitionFilename) const
virtual

Returns true if the given system is in the master SMS.

virtual bool DtSimulationObjectEditorComponentSystemDatabase::isInMasterSMS ( const DtComponentSystemDefinition ) const
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::setIsInMasterSMS ( const DtComponentSystemDefinition def,
bool  b 
)
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::setIsInMasterSMS ( const DtFilename &  definitionFilename,
bool  b 
)
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::isDeleted ( const DtFilename &  definitionFilename) const
virtual

Returns true if the given system has been scheduled for deletion.

virtual bool DtSimulationObjectEditorComponentSystemDatabase::isDeleted ( const DtComponentSystemDefinition ) const
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::setIsNew ( const DtComponentSystemDefinition def,
bool   
)
virtual

Returns true if the given system has been newly created and not yet saved.

virtual void DtSimulationObjectEditorComponentSystemDatabase::setIsNew ( const DtFilename &  ,
bool   
)
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::isNew ( const DtFilename &  definitionFilename) const
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::isNew ( const DtComponentSystemDefinition ) const
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::changeSystemFilename ( const DtFilename &  oldFilename,
const DtFilename &  newFilename 
)
virtual

Changes the filename for the given system to the new filename.

Reimplemented from DtComponentSystemDatabase.

virtual bool DtSimulationObjectEditorComponentSystemDatabase::removeSystem ( const DtFilename &  definitionFilename)
virtual

Removes the specified system from the database.

Reimplemented from DtComponentSystemDatabase.

virtual DtSimulationModelSet* DtSimulationObjectEditorComponentSystemDatabase::simulationModelSetFor ( const DtFilename &  definitionFilename) const
virtual

Returns the simulation model set the system is in.

virtual DtSimulationModelSet* DtSimulationObjectEditorComponentSystemDatabase::simulationModelSetFor ( const DtComponentSystemDefinition ) const
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::setSimulationModelSet ( const DtComponentSystemDefinition def,
DtSimulationModelSet  
)
virtual
virtual void DtSimulationObjectEditorComponentSystemDatabase::setSimulationModelSet ( const DtFilename &  ,
DtSimulationModelSet  
)
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::saveSystem ( const DtFilename &  )
virtual

Saves the system that is represented by the given filename.

Reimplemented from DtComponentSystemDatabase.

virtual void DtSimulationObjectEditorComponentSystemDatabase::setDeleted ( const DtComponentSystemDefinition def,
bool   
)
virtual

Sets whether or not this system is deleted.

virtual void DtSimulationObjectEditorComponentSystemDatabase::setDeleted ( const DtFilename &  ,
bool   
)
virtual
virtual DtVariableBindingsList& DtSimulationObjectEditorComponentSystemDatabase::variableBindingsFor ( const DtComponentSystemDefinition )
virtual
virtual const DtVariableBindingsList& DtSimulationObjectEditorComponentSystemDatabase::variableBindingsFor ( const DtComponentSystemDefinition ) const
virtual
virtual std::map<DtString, DtString> DtSimulationObjectEditorComponentSystemDatabase::variableSubstitutionsFor ( const DtComponentSystemDefinition ) const
virtual
virtual DtVariableBindingsList& DtSimulationObjectEditorComponentSystemDatabase::variableBindingsFor ( const DtFilename &  )
virtual
virtual const DtVariableBindingsList& DtSimulationObjectEditorComponentSystemDatabase::variableBindingsFor ( const DtFilename &  ) const
virtual
virtual DtComponentSystemDefinition* DtSimulationObjectEditorComponentSystemDatabase::addSystem ( const DtFilename &  ,
const DtComponentSystemDefinition  
)
virtual

Adds the system given the filename and component definition, which will be cloned and then taken control of by this database.

The new member is returned. If the system exists will remove old system

Reimplemented from DtComponentSystemDatabase.

virtual DtComponentSystemDefinition* DtSimulationObjectEditorComponentSystemDatabase::addSystem ( const DtString ,
const DtFilename &   
)
virtual

Creates a new blank system with the given name and returns the newly created definition.

virtual void DtSimulationObjectEditorComponentSystemDatabase::resetVariableBindings ( const DtComponentSystemDefinition )
virtual

Resets the variable bindings based on the given system definition.

virtual void DtSimulationObjectEditorComponentSystemDatabase::resetVariableBindings ( const DtFilename &  )
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::anyNew ( ) const
virtual
virtual bool DtSimulationObjectEditorComponentSystemDatabase::anyDeleted ( ) const
virtual

Member Data Documentation

AdditionalSystemInformationMap DtSimulationObjectEditorComponentSystemDatabase::myAdditionalSystemInformationMap
protected
DtVariableBindingsList DtSimulationObjectEditorComponentSystemDatabase::myEmptyBindings
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)