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

DtOsgEarthFileParser. More...

Public Member Functions

 DtOsgEarthFileParser ()
 The default constructor. More...
 
virtual ~DtOsgEarthFileParser ()
 The default destructor. More...
 
virtual void parse (const DtUnicode &fileName)
 Parses an earth file. More...
 
virtual void addConfig (const std::string &parentType, const std::string &parentName, const osgEarth::Config &config)
 Adds a child config to the parent config. More...
 
virtual void removeConfig (const std::string &type, const std::string &name)
 Removes a config with the given type and name. More...
 
virtual void moveConfig (const std::string &type, const std::string &name, int newIndex)
 Moves a config with the give type and name to the new index under the parent. More...
 
virtual void updateConfig (const std::string &name, const std::string &type, const osgEarth::Config &config)
 Updates a config with the new config. More...
 
virtual void updateName (const std::string &oldName, const std::string &type, const std::string &newName)
 Updates a config with the new name. More...
 
virtual void modifyConfig (const std::string &name, const osgEarth::Config &config)
 Modified a config with the new config. More...
 
virtual DtOsgEarthFilerootFile ()
 Gets the root file. More...
 
virtual const DtOsgEarthFilefindOsgEarthFile (const DtUnicode &fileName) const
 Finds the earth file with the given file name. More...
 
virtual bool hasExternalFiles () const
 Checks if the root file has any external files. More...
 
virtual void save (const DtUnicode &fileName)
 Saves the root file to a specific path. More...
 
virtual void setRootFileName (const DtUnicode &fileName)
 Sets the root file name. More...
 

Protected Attributes

DtOsgEarthFilemyRootFile
 

Private Member Functions

 DtOsgEarthFileParser (const DtOsgEarthFileParser &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtOsgEarthFileParseroperator= (const DtOsgEarthFileParser &)
 Assignment Operator not implemented – Copy not allowed. More...
 

Detailed Description

DtOsgEarthFileParser.

A class used to parse the earth file.

Constructor & Destructor Documentation

makVrv::DtOsgEarthFileParser::DtOsgEarthFileParser ( )

The default constructor.

virtual makVrv::DtOsgEarthFileParser::~DtOsgEarthFileParser ( )
virtual

The default destructor.

makVrv::DtOsgEarthFileParser::DtOsgEarthFileParser ( const DtOsgEarthFileParser )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtOsgEarthFileParser::parse ( const DtUnicode fileName)
virtual

Parses an earth file.

Parameters
fileNameThe file name of the earth file.
virtual void makVrv::DtOsgEarthFileParser::addConfig ( const std::string &  parentType,
const std::string &  parentName,
const osgEarth::Config &  config 
)
virtual

Adds a child config to the parent config.

Parameters
parentTypeThe type of the parent.
parentNameThe name of the parent.
configThe child config.
virtual void makVrv::DtOsgEarthFileParser::removeConfig ( const std::string &  type,
const std::string &  name 
)
virtual

Removes a config with the given type and name.

Parameters
typeThe type of the config.
nameThe name of the config.
virtual void makVrv::DtOsgEarthFileParser::moveConfig ( const std::string &  type,
const std::string &  name,
int  newIndex 
)
virtual

Moves a config with the give type and name to the new index under the parent.

Parameters
typeThe type of the config.
nameThe name of the config.
newIndexThe new sequence of the child under the parent.
virtual void makVrv::DtOsgEarthFileParser::updateConfig ( const std::string &  name,
const std::string &  type,
const osgEarth::Config &  config 
)
virtual

Updates a config with the new config.

Parameters
nameThe name of the config.
typeThe type of the config.
virtual void makVrv::DtOsgEarthFileParser::updateName ( const std::string &  oldName,
const std::string &  type,
const std::string &  newName 
)
virtual

Updates a config with the new name.

Parameters
oldNameThe old name of the config.
typeThe type of the config.
newNameThe new name of the config.
virtual void makVrv::DtOsgEarthFileParser::modifyConfig ( const std::string &  name,
const osgEarth::Config &  config 
)
virtual

Modified a config with the new config.

Parameters
nameThe name of the config.
configThe new config.
virtual DtOsgEarthFile* makVrv::DtOsgEarthFileParser::rootFile ( )
virtual

Gets the root file.

virtual const DtOsgEarthFile* makVrv::DtOsgEarthFileParser::findOsgEarthFile ( const DtUnicode fileName) const
virtual

Finds the earth file with the given file name.

Parameters
fileNameThe name of the file to search.
Returns
Return NULL if not found.
virtual bool makVrv::DtOsgEarthFileParser::hasExternalFiles ( ) const
virtual

Checks if the root file has any external files.

virtual void makVrv::DtOsgEarthFileParser::save ( const DtUnicode fileName)
virtual

Saves the root file to a specific path.

Parameters
fileNameThe path to save the file.
virtual void makVrv::DtOsgEarthFileParser::setRootFileName ( const DtUnicode fileName)
virtual

Sets the root file name.

Parameters
fileNameThe path to save the file.
DtOsgEarthFileParser& makVrv::DtOsgEarthFileParser::operator= ( const DtOsgEarthFileParser )
private

Assignment Operator not implemented – Copy not allowed.

Member Data Documentation

DtOsgEarthFile* makVrv::DtOsgEarthFileParser::myRootFile
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)