DtOsgEarthFileParser.
A class used to parse the earth file.
|
| | 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 DtOsgEarthFile * | rootFile () |
| |
| virtual const DtOsgEarthFile * | findOsgEarthFile (const DtUnicode &fileName) const |
| |
| virtual bool | hasExternalFiles () const |
| |
| virtual void | save (const DtUnicode &fileName) |
| |
| virtual void | setRootFileName (const DtUnicode &fileName) |
| |
| makVrv::DtOsgEarthFileParser::DtOsgEarthFileParser |
( |
| ) |
|
| virtual makVrv::DtOsgEarthFileParser::~DtOsgEarthFileParser |
( |
| ) |
|
|
virtual |
Copy Constructor not implemented – Copy not allowed.
| virtual void makVrv::DtOsgEarthFileParser::parse |
( |
const DtUnicode & |
fileName | ) |
|
|
virtual |
Parses an earth file.
- Parameters
-
| fileName | The 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
-
| parentType | The type of the parent. |
| parentName | The name of the parent. |
| config | The 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
-
| type | The type of the config. |
| name | The 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
-
| type | The type of the config. |
| name | The name of the config. |
| newIndex | The 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
-
| name | The name of the config. |
| type | The 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
-
| oldName | The old name of the config. |
| type | The type of the config. |
| newName | The 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
-
| name | The name of the config. |
| config | The new config. |
Finds the earth file with the given file name.
- Parameters
-
| fileName | The 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
-
| fileName | The path to save the file. |
| virtual void makVrv::DtOsgEarthFileParser::setRootFileName |
( |
const DtUnicode & |
fileName | ) |
|
|
virtual |
Sets the root file name.
- Parameters
-
| fileName | The path to save the file. |
Assignment Operator not implemented – Copy not allowed.
The documentation for this class was generated from the following file: