![]() |
VR-Forces 5.0.2 Developer's Guide
|
Instances of DtMtlParameterDb are a database of DtVrfObjectParameters* entries that are loaded from an MTL (Mak Technologies Lisp) format file.

Static Public Member Functions | |
| static DtVrfParameterDb * | create () |
| static const DtString & | opdFilenameExtension () |
| static const DtString & | opeFilenameExtension () |
Static Public Member Functions inherited from DtVrfParameterDb | |
| static DtVrfParameterDb * | create () |
Protected Member Functions | |
| virtual DtMtlParameterDbReader * | createParamDbReader () |
| virtual DtMtlParameterDbWriter * | createMtlParamDbWriter () |
| virtual bool | copyDependentParameterDirectories (const DtFilename &oldPath, const DtFilename &newPath) |
| virtual DtFilename | getPath (const DtFilename &filename) |
| virtual DtVrfParameterDbEntry * | createParameterEntry () const |
Protected Member Functions inherited from DtVrfParameterDb | |
| virtual void | addParameterDbEntry (DtVrfParameterDbEntry *newParameterEntry) |
| virtual DtListItem * | lookupParameters (const DtObjectType &objectType) const |
| void | emptyList () |
Static Protected Member Functions | |
| static const std::map < DtString, DtFilename > & | extensionToPathMap () |
Protected Attributes | |
| DtMtlParameterDbReader * | myParameterDbReader |
| DtMtlParameterDbWriter * | myParameterDbWriter |
| int | myVersionNumber |
| DtVariableBindingsList | myVariableBindings |
| std::map< std::string, std::string > | myDependentParameterFileToCopyPairs |
| std::list < DtVariableBindingsSharedPtr > | myVariableBindingsList |
| DtRemoteConfigurationList * | pMyRemoteConfigurationList |
| DtRemoteConfigurationList::CreatorFcn | myRemoteConfigListCreatorFcn |
| DtReaderWriter::SearchPaths | mySearchPaths |
| tbb::queuing_mutex | myMutex |
Protected Attributes inherited from DtVrfParameterDb | |
| DtList | myParameterList |
| std::map< DtString, std::list < const DtVrfObjectParameters * > > | myEquipmentToParamsMap |
| tbb::spin_rw_mutex | myEquipmentToParamsMapMutex |
Static Protected Attributes | |
| static DtString | theOpdFilenameExtension |
| static DtString | theOpeFilenameExtension |
| static DtFilename | theOldParameterDbDirectory |
| static std::map< DtString, DtFilename > * | theExtensionToPathMap |
Private Member Functions | |
| DtMtlParameterDb (const DtMtlParameterDb &orig) | |
| DtMtlParameterDb & | operator= (const DtMtlParameterDb &orig) |
| DtMtlParameterDb::DtMtlParameterDb | ( | ) |
default constructor
|
virtual |
destructor
|
private |
copy constructor - not implemented
|
virtual |
Initialization - must be called before any other public member functions are called.
Reimplemented from DtVrfParameterDb.
|
virtual |
Add a new entry to the parameter database, keyed on DtObjectType. If an entry with the exact object type already exists, then it will be removed and deleted before the new one is added. filename is the name of a object parameter entry file (*.ope), which is a MTL file containing the data representing a single DtVrfObjectParameter entry. If the entry is added using a matchType, it will not override entries of the same type that were added using object types.
|
virtual |
discard existing pMyRemoteConfigurationList and recreate using myRemoteConfigListCreatorFcn This is called from init();
|
virtual |
Lookup entry in parameter database that most closely matches given objectType. If matchingType is specified, return the object type of the entry (which may be less specific than the object type being looked up). Loads the object parameter entry from given filename, if corresponding data for the entry has not yet been loaded. If source is specified, it will be set to the filename of the OPE file loaded for these parameters.
Reimplemented from DtVrfParameterDb.
|
virtual |
Loads the contents of an MTL parameter database file (*.opd). If the preloadParameters value is true will load all the parameters found in the database from disk (versus waiting until it is needed)
Reimplemented from DtVrfParameterDb.
|
virtual |
Loads MTL parameter database file and loads all .ope files it references.
|
inline |
References pMyRemoteConfigurationList.
|
inline |
References pMyRemoteConfigurationList.
|
inline |
References myRemoteConfigListCreatorFcn.
|
inline |
References myRemoteConfigListCreatorFcn.
|
virtual |
Saves contents of parameter database to file. Filename will be given .opd file extension if it does not already exist. Creates subdirectory of the same name minus the .opd extension and places individual object parameter entry files (.ope) for each entry in the database. Object parameter database file will contain list of filenames referencing individual .ope files.
Reimplemented from DtVrfParameterDb.
|
virtual |
Overridden to clear out the variable bindings.
Reimplemented from DtVrfParameterDb.
|
virtual |
Version number of parameter database. Version number is stored in parameter databse file as of VR-Forces version 3.7. See CURRENT_PARAMETER_DB_FILE_FORMAT_VERSION at top of this file for latest version number.
|
virtual |
|
virtual |
Dependent parameter files (.asl, .hit, .frm, .det, .dmg) to copy upon save. These files are cached when a parameter database is loaded. Only the DtMtlParamDbReader and DtMtlParamDbWriter classes should need to call any of these functions.
|
virtual |
|
virtual |
|
virtual |
Updates paths to use relative-to-container convention for filenames in given parameters object. Stores old/new parameter filenames in parameterDb, so if/when we go to write out the parameter database, it can find all of the files it need (to copy to the new path).
|
inline |
References myParameterDbReader.
|
inline |
References myParameterDbWriter.
|
virtual |
Strips the extension (the trailing portion of a filename starting with ".") from a given filename.
|
virtual |
Returns filename loaded.
|
virtual |
Returns filename loaded.
|
static |
Returns a new instance of this class.
|
static |
Default filename extension for parameter database file (.opd).
|
static |
Default filename extension for parameter database entry files (.ope).
|
virtual |
Sets the reader, deleting old reader. Takes ownership of reader.
|
virtual |
Sets the writer, deleting old writer. Takes ownership of writer.
|
virtual |
List of additional search paths from included SMSs.
|
virtual |
List of additional search paths from included SMSs.
|
virtual |
Retrieves the parameters from a given parameter entry object. If the parameters component of an entry is non-NULL, returns the parameters. If the parameters component of an entry is NULL, loads the parameters from the filename given in the entry, storing the parameters in the entry, and then returns the parameters.
|
protectedvirtual |
Factory method that creates parameter database reader object used in load(). Creates an instance of DtMtlParameterDbReader.
|
protectedvirtual |
Factory method that creates parameter database writer object used in save(). Creates an instance of DtMtlParameterDbWriter.
|
protectedvirtual |
Copies ammoselect, damage, detection, and hit subdirectories from oldPath location to newPath location.
|
protectedvirtual |
Extracts path from a given filename.
|
protectedvirtual |
Override to create entry of type DtMtlParameterDbEntry.
Reimplemented from DtVrfParameterDb.
|
staticprotected |
Map of filename extensions of dependent parameter files (.dmg, .hit, .asl, .frm, .det) to corrsponding directory paths (.\damage, .\hit, .\ammoselect, .\formation, .\detection). Used in updating legacy format parameter database files that mapped these supporting files relative to the application path.
|
private |
assignment operator - not implemented
|
protected |
Referenced by dbReader().
|
protected |
Referenced by dbWriter().
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
List of all top level variable bindings for each OPD file read in. Additional OPD files read will add their bindings to the end if the list.
|
protected |
List of DtRemoteConfigurationEntry* objects.
Referenced by remoteConfigurationList().
|
protected |
Referenced by remoteConfigurationListCreatorFcn(), and setRemoteConfigurationListCreatorFcn().
|
protected |
List of additional search paths from included SMSs.
|
mutableprotected |
|
staticprotected |