vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GalaxyXML::Galaxy Class Reference

#include <galaxy_xml.h>

Inheritance diagram for GalaxyXML::Galaxy:
GalaxyXML::SGalaxy

Public Member Functions

const string & getPlanetNameFromInitial (const string &abbrev) const
 
const string & getPlanetNameFromTexture (const string &tex) const
 
const string & getPlanetVariable (const string &name, const string &defaultvalue) const
 
const string & getPlanetVariable (const string &planet, const string &name, const string &defaultvalue) const
 
void writeGalaxy (VSFileSystem::VSFile &f) const
 
SGalaxygetPlanetTypes ()
 
bool setPlanetVariable (const string &name, const string &value)
 
void addPlanetSection (const std::vector< string > &section)
 
bool setPlanetVariable (const string &planet, const string &name, const string &value)
 
 Galaxy ()
 
 Galaxy (const char *configfile)
 
 Galaxy (const SGalaxy &g)
 
- Public Member Functions inherited from GalaxyXML::SGalaxy
 SGalaxy ()
 
 SGalaxy (const char *configfile)
 
 SGalaxy (const SGalaxy &g)
 
void writeGalaxy (VSFileSystem::VSFile &f) const
 
void writeSector (VSFileSystem::VSFile &f, int tabs, const string &sectorType, SGalaxy *planet_types) const
 
void processGalaxy (const string &sys)
 
void processSystem (const string &sys, const QVector &suggested_coordinates)
 
 ~SGalaxy ()
 
const string & getVariable (const std::vector< string > &section, const string &name, const string &default_value) const
 
const string & getRandSystem (const string &section, const string &default_value) const
 
const string & getVariable (const string &section, const string &name, const string &defaultvalue) const
 
const string & getVariable (const string &section, const string &subsection, const string &name, const string &defaultvalue) const
 
bool setVariable (const string &section, const string &name, const string &value)
 
bool setVariable (const string &section, const string &subsection, const string &name, const string &value)
 
void addSection (const std::vector< string > &section)
 
void setVariable (const std::vector< string > &section, const string &name, const string &value)
 
SubHeirarchygetHeirarchy ()
 
const std::string & operator[] (const std::string &s) const
 

Additional Inherited Members

- Protected Member Functions inherited from GalaxyXML::SGalaxy
SGalaxyoperator= (const SGalaxy &a)
 
- Protected Attributes inherited from GalaxyXML::SGalaxy
class SubHeirarchysubheirarchy
 
StringMap data
 

Detailed Description

Definition at line 59 of file galaxy_xml.h.

Constructor & Destructor Documentation

GalaxyXML::Galaxy::Galaxy ( )
inline

Definition at line 96 of file galaxy_xml.h.

Galaxy::Galaxy ( const char *  configfile)

Definition at line 538 of file galaxy_xml.cpp.

Galaxy::Galaxy ( const SGalaxy g)

Definition at line 533 of file galaxy_xml.cpp.

Member Function Documentation

void GalaxyXML::Galaxy::addPlanetSection ( const std::vector< string > &  section)
const string& GalaxyXML::Galaxy::getPlanetNameFromInitial ( const string &  abbrev) const
inline

Definition at line 69 of file galaxy_xml.h.

const string& GalaxyXML::Galaxy::getPlanetNameFromTexture ( const string &  tex) const
inline

Definition at line 79 of file galaxy_xml.h.

SGalaxy * Galaxy::getPlanetTypes ( )

Definition at line 310 of file galaxy_xml.cpp.

const string & Galaxy::getPlanetVariable ( const string &  name,
const string &  defaultvalue 
) const

Definition at line 446 of file galaxy_xml.cpp.

const string & Galaxy::getPlanetVariable ( const string &  planet,
const string &  name,
const string &  defaultvalue 
) const

Definition at line 426 of file galaxy_xml.cpp.

bool Galaxy::setPlanetVariable ( const string &  name,
const string &  value 
)

Definition at line 410 of file galaxy_xml.cpp.

bool Galaxy::setPlanetVariable ( const string &  planet,
const string &  name,
const string &  value 
)

Definition at line 418 of file galaxy_xml.cpp.

void Galaxy::writeGalaxy ( VSFileSystem::VSFile f) const

Definition at line 249 of file galaxy_xml.cpp.


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