Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xml_support.h File Reference
#include "config.h"
#include <stdio.h>
#include <string>
#include <sstream>
#include "hashtable.h"
#include <vector>
#include <expat.h>
#include <iostream>
#include "gfx/vec.h"

Go to the source code of this file.

Classes

struct  XMLSupport::Attribute
 
class  XMLSupport::AttributeList
 
class  XMLSupport::EnumMap
 
struct  XMLSupport::EnumMap::Pair
 

Namespaces

 XMLSupport
 

Constant Groups

 XMLSupport
 

Macros

#define ARRAY_LENGTH(a)   ( sizeof (a)/sizeof (a[0]) )
 

Functions

std::string strtoupper (const std::string &foo)
 
std::string strtolower (const std::string &foo)
 
float XMLSupport::parse_floatf (const std::string &str)
 
double XMLSupport::parse_float (const std::string &str)
 
void XMLSupport::parse_floatfv (const std::string &str, int max,...)
 
void XMLSupport::parse_floatv (const std::string &str, int max,...)
 
std::string XMLSupport::replace_space (const std::string &str)
 
int XMLSupport::parse_int (const std::string &str)
 
bool XMLSupport::parse_bool (const std::string &str)
 
bool XMLSupport::parse_option_ispresent (const std::string &str, const std::string &opt, const std::string &sep=",\r\n", const std::string &vsep="=")
 
std::string XMLSupport::parse_option_value (const std::string &str, const std::string &opt, const std::string &defvalue, const std::string &sep=",\r\n", const std::string &vsep="=")
 
std::string XMLSupport::escaped_string (const std::string &str)
 
std::string XMLSupport::tostring5 (unsigned short num)
 
std::string XMLSupport::tostring (int num)
 
std::string XMLSupport::tostring (unsigned int num)
 
std::string XMLSupport::tostring (long num)
 
std::string XMLSupport::tostring (float num)
 
std::string XMLSupport::floattostringh (float f)
 
std::string XMLSupport::VectorToString (const Vector &v)
 

Macro Definition Documentation

#define ARRAY_LENGTH (   a)    ( sizeof (a)/sizeof (a[0]) )

Definition at line 21 of file xml_support.h.

Function Documentation

std::string strtolower ( const std::string &  foo)
std::string strtoupper ( const std::string &  foo)