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

Class DtTerrainFilenameRemapper will load in the comma delimited terrain file name map, and, if there is a gui or sim terrain that does not exists in the scenario file but the filename does exist in the file name map, will change the terrain name to the remapped name from the user terrain directory. More...

Public Member Functions

 DtTerrainFilenameRemapper (const DtFilename &terrainMapFilename, const DtFilename &terrainDirectory)
 CTOR.
 DtTerrainFilenameRemapper (const DtTerrainFilenameRemapper &)
 Copy constructor.
virtual ~DtTerrainFilenameRemapper ()
 DTOR.
virtual bool remapTerrainFilenames (DtScenario &)
 Will remap terrain filenames in gui and sim terrains.

Protected Member Functions

virtual void readMapFile (const DtFilename &terrainMapFilename)

Protected Attributes

std::map< DtFilename, DtFilename > myTerrainMap
DtFilename myTerrainDirectory

Detailed Description

Class DtTerrainFilenameRemapper will load in the comma delimited terrain file name map, and, if there is a gui or sim terrain that does not exists in the scenario file but the filename does exist in the file name map, will change the terrain name to the remapped name from the user terrain directory.

Note that the target name will always be assumed to be relative to the given user data terrain. The map file will not substitute variables in the target name. Note, due to linux support, this search is case sensitive.

Constructor & Destructor Documentation

DtTerrainFilenameRemapper::DtTerrainFilenameRemapper ( const DtFilename &  terrainMapFilename,
const DtFilename &  terrainDirectory 
)

CTOR.

DtTerrainFilenameRemapper::DtTerrainFilenameRemapper ( const DtTerrainFilenameRemapper )

Copy constructor.

virtual DtTerrainFilenameRemapper::~DtTerrainFilenameRemapper ( )
virtual

DTOR.

Member Function Documentation

virtual bool DtTerrainFilenameRemapper::remapTerrainFilenames ( DtScenario )
virtual

Will remap terrain filenames in gui and sim terrains.

If a remap occured will return true. Does not save out modified scenario

virtual void DtTerrainFilenameRemapper::readMapFile ( const DtFilename &  terrainMapFilename)
protectedvirtual

Member Data Documentation

std::map<DtFilename, DtFilename> DtTerrainFilenameRemapper::myTerrainMap
protected
DtFilename DtTerrainFilenameRemapper::myTerrainDirectory
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)