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

#include <galaxy_xml.h>

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

Public Member Functions

 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
 

Protected Member Functions

SGalaxyoperator= (const SGalaxy &a)
 

Protected Attributes

class SubHeirarchysubheirarchy
 
StringMap data
 

Friends

class Galaxy
 

Detailed Description

Definition at line 17 of file galaxy_xml.h.

Constructor & Destructor Documentation

GalaxyXML::SGalaxy::SGalaxy ( )
inline

Definition at line 25 of file galaxy_xml.h.

SGalaxy::SGalaxy ( const char *  configfile)

Definition at line 262 of file galaxy_xml.cpp.

SGalaxy::SGalaxy ( const SGalaxy g)

Definition at line 184 of file galaxy_xml.cpp.

SGalaxy::~SGalaxy ( )

Definition at line 164 of file galaxy_xml.cpp.

Member Function Documentation

void SGalaxy::addSection ( const std::vector< string > &  section)

Definition at line 315 of file galaxy_xml.cpp.

SubHeirarchy & SGalaxy::getHeirarchy ( )

Definition at line 285 of file galaxy_xml.cpp.

const string & SGalaxy::getRandSystem ( const string &  section,
const string &  default_value 
) const

Definition at line 343 of file galaxy_xml.cpp.

const string & SGalaxy::getVariable ( const std::vector< string > &  section,
const string &  name,
const string &  default_value 
) const

Definition at line 294 of file galaxy_xml.cpp.

const string & SGalaxy::getVariable ( const string &  section,
const string &  name,
const string &  defaultvalue 
) const

Definition at line 394 of file galaxy_xml.cpp.

const string & SGalaxy::getVariable ( const string &  section,
const string &  subsection,
const string &  name,
const string &  defaultvalue 
) const

Definition at line 361 of file galaxy_xml.cpp.

SGalaxy & SGalaxy::operator= ( const SGalaxy a)
protected

Definition at line 170 of file galaxy_xml.cpp.

const std::string& GalaxyXML::SGalaxy::operator[] ( const std::string &  s) const
inline

Definition at line 48 of file galaxy_xml.h.

void SGalaxy::processGalaxy ( const string &  sys)

Definition at line 201 of file galaxy_xml.cpp.

void SGalaxy::processSystem ( const string &  sys,
const QVector &  suggested_coordinates 
)

Definition at line 191 of file galaxy_xml.cpp.

bool SGalaxy::setVariable ( const string &  section,
const string &  name,
const string &  value 
)

Definition at line 331 of file galaxy_xml.cpp.

bool SGalaxy::setVariable ( const string &  section,
const string &  subsection,
const string &  name,
const string &  value 
)

Definition at line 337 of file galaxy_xml.cpp.

void SGalaxy::setVariable ( const std::vector< string > &  section,
const string &  name,
const string &  value 
)

Definition at line 321 of file galaxy_xml.cpp.

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

Definition at line 241 of file galaxy_xml.cpp.

void SGalaxy::writeSector ( VSFileSystem::VSFile f,
int  tabs,
const string &  sectorType,
SGalaxy planet_types 
) const

Definition at line 217 of file galaxy_xml.cpp.

Friends And Related Function Documentation

friend class Galaxy
friend

Definition at line 20 of file galaxy_xml.h.

Member Data Documentation

StringMap GalaxyXML::SGalaxy::data
protected

Definition at line 22 of file galaxy_xml.h.

class SubHeirarchy* GalaxyXML::SGalaxy::subheirarchy
protected

Definition at line 21 of file galaxy_xml.h.


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