VR-Forces Developer's Guide
 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.

A class used to parse the earth file.

Public Member Functions

 DtOsgEarthFileParser ()
 
virtual ~DtOsgEarthFileParser ()
 
virtual void parse (const DtUnicode &fileName)
 
virtual void addConfig (const std::string &parentType, const std::string &parentName, const osgEarth::Config &config)
 
virtual void removeConfig (const std::string &type, const std::string &name)
 
virtual void moveConfig (const std::string &type, const std::string &name, int newIndex)
 
virtual void updateConfig (const std::string &name, const std::string &type, const osgEarth::Config &config)
 
virtual void updateName (const std::string &oldName, const std::string &type, const std::string &newName)
 
virtual void modifyConfig (const std::string &name, const osgEarth::Config &config)
 
virtual DtOsgEarthFilerootFile ()
 
virtual const DtOsgEarthFilefindOsgEarthFile (const DtUnicode &fileName) const
 
virtual bool hasExternalFiles () const
 
virtual void save (const DtUnicode &fileName)
 
virtual void setRootFileName (const DtUnicode &fileName)
 

Protected Attributes

DtOsgEarthFilemyRootFile
 

Private Member Functions

 DtOsgEarthFileParser (const DtOsgEarthFileParser &)
 
DtOsgEarthFileParseroperator= (const DtOsgEarthFileParser &)
 

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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)