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

Classes

class  XML
 
class  SGalaxy
 
class  Galaxy
 
class  SubHeirarchy
 

Typedefs

typedef std::map< std::string,
std::string > 
StringMap
 

Enumerations

enum  GalaxyNames {
  UNKNOWN, GALAXY, SYSTEMS, SECTOR,
  SYSTEM, VAR, NAME, VALUE,
  PLANETS, PLANET
}
 

Functions

void beginElement (void *userdata, const XML_Char *nam, const XML_Char **atts)
 
void endElement (void *userdata, const XML_Char *nam)
 

Variables

const EnumMap::Pair element_names [8]
 
const EnumMap::Pair attribute_names [3]
 
const EnumMap element_map (element_names, 8)
 
const EnumMap attribute_map (attribute_names, 3)
 

Detailed Description

Class Universe Deals with universal constants. It is a global, accessed from anywhere as _Universe-> Universe may be queried for Relationships, the current star system rendering is taking place in etc. It acts as a wrapper to the active Star System. Additionally it handles beginning and ending the main loop. And starting and ending graphics. (incl the task of wiping temp lights) Deprecated: loaded dynamic gldrv module

Typedef Documentation

typedef std::map< std::string, std::string > GalaxyXML::StringMap

Definition at line 15 of file galaxy_xml.h.

Enumeration Type Documentation

Enumerator
UNKNOWN 
GALAXY 
SYSTEMS 
SECTOR 
SYSTEM 
VAR 
NAME 
VALUE 
PLANETS 
PLANET 

Definition at line 42 of file galaxy_xml.cpp.

Function Documentation

void GalaxyXML::beginElement ( void *  userdata,
const XML_Char *  nam,
const XML_Char **  atts 
)

Definition at line 79 of file galaxy_xml.cpp.

void GalaxyXML::endElement ( void *  userdata,
const XML_Char *  nam 
)

Definition at line 139 of file galaxy_xml.cpp.

Variable Documentation

const EnumMap GalaxyXML::attribute_map(attribute_names, 3)
const EnumMap::Pair GalaxyXML::attribute_names[3]
Initial value:
= {
EnumMap::Pair( "UNKNOWN", UNKNOWN ),
EnumMap::Pair( "name", NAME ),
EnumMap::Pair( "value", VALUE )
}

Definition at line 65 of file galaxy_xml.cpp.

const EnumMap GalaxyXML::element_map(element_names, 8)
const EnumMap::Pair GalaxyXML::element_names[8]
Initial value:
= {
EnumMap::Pair( "UNKNOWN", UNKNOWN ),
EnumMap::Pair( "Galaxy", GALAXY ),
EnumMap::Pair( "Systems", SYSTEMS ),
EnumMap::Pair( "Sector", SECTOR ),
EnumMap::Pair( "System", SYSTEM ),
EnumMap::Pair( "Planets", PLANETS ),
EnumMap::Pair( "Planet", PLANET ),
EnumMap::Pair( "Var", VAR )
}

Definition at line 55 of file galaxy_xml.cpp.