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

Classes

struct  Attribute
 
class  AttributeList
 
class  EnumMap
 

Typedefs

typedef boost::char_separator
< std::string::value_type > 
Separator
 
typedef boost::tokenizer
< Separator
Tokenizer
 

Functions

string replace_space (const string &str)
 
bool parse_bool (const string &str)
 
double parse_float (const string &str)
 
float parse_floatf (const string &str)
 
void parse_floatv (const std::string &input, size_t maxTokens,...)
 
void parse_floatfv (const string &input, int maxTokens,...)
 
int parse_int (const string &str)
 
string::size_type parse_option_find (const string &str, const string &opt, const string &sep, const string &vsep)
 
bool parse_option_ispresent (const string &str, const string &opt, const string &sep, const string &vsep)
 
string parse_option_value (const string &str, const string &opt, const string &defvalue, const string &sep, const string &vsep)
 
string escaped_string (const string &str)
 
float parse_floatf (const std::string &str)
 
double parse_float (const std::string &str)
 
void parse_floatfv (const std::string &str, int max,...)
 
void parse_floatv (const std::string &str, int max,...)
 
std::string replace_space (const std::string &str)
 
int parse_int (const std::string &str)
 
bool parse_bool (const std::string &str)
 
bool parse_option_ispresent (const std::string &str, const std::string &opt, const std::string &sep=",\r\n", const std::string &vsep="=")
 
std::string 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 escaped_string (const std::string &str)
 
std::string tostring5 (unsigned short num)
 
std::string tostring (int num)
 
std::string tostring (unsigned int num)
 
std::string tostring (long num)
 
std::string tostring (float num)
 
std::string floattostringh (float f)
 
std::string VectorToString (const Vector &v)
 

Typedef Documentation

typedef boost::char_separator<std::string::value_type> XMLSupport::Separator

Definition at line 30 of file xml_support.cpp.

typedef boost::tokenizer<Separator> XMLSupport::Tokenizer

Definition at line 31 of file xml_support.cpp.

Function Documentation

std::string XMLSupport::escaped_string ( const std::string &  str)
string XMLSupport::escaped_string ( const string &  str)

Definition at line 169 of file xml_support.cpp.

std::string XMLSupport::floattostringh ( float  f)
inline

Definition at line 118 of file xml_support.h.

bool XMLSupport::parse_bool ( const std::string &  str)
bool XMLSupport::parse_bool ( const string &  str)

Definition at line 70 of file xml_support.cpp.

double XMLSupport::parse_float ( const std::string &  str)
double XMLSupport::parse_float ( const string &  str)

Definition at line 79 of file xml_support.cpp.

float XMLSupport::parse_floatf ( const std::string &  str)
float XMLSupport::parse_floatf ( const string &  str)

Definition at line 87 of file xml_support.cpp.

void XMLSupport::parse_floatfv ( const std::string &  str,
int  max,
  ... 
)
void XMLSupport::parse_floatfv ( const string &  input,
int  maxTokens,
  ... 
)

Definition at line 109 of file xml_support.cpp.

void XMLSupport::parse_floatv ( const std::string &  str,
int  max,
  ... 
)
void XMLSupport::parse_floatv ( const std::string &  input,
size_t  maxTokens,
  ... 
)

Definition at line 95 of file xml_support.cpp.

int XMLSupport::parse_int ( const std::string &  str)
int XMLSupport::parse_int ( const string &  str)

Definition at line 124 of file xml_support.cpp.

string::size_type XMLSupport::parse_option_find ( const string &  str,
const string &  opt,
const string &  sep,
const string &  vsep 
)

Definition at line 131 of file xml_support.cpp.

bool XMLSupport::parse_option_ispresent ( const std::string &  str,
const std::string &  opt,
const std::string &  sep = ",\r\n",
const std::string &  vsep = "=" 
)
bool XMLSupport::parse_option_ispresent ( const string &  str,
const string &  opt,
const string &  sep,
const string &  vsep 
)

Definition at line 149 of file xml_support.cpp.

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 = "=" 
)
string XMLSupport::parse_option_value ( const string &  str,
const string &  opt,
const string &  defvalue,
const string &  sep,
const string &  vsep 
)

Definition at line 153 of file xml_support.cpp.

std::string XMLSupport::replace_space ( const std::string &  str)
string XMLSupport::replace_space ( const string &  str)

Definition at line 62 of file xml_support.cpp.

std::string XMLSupport::tostring ( int  num)
inline

Definition at line 94 of file xml_support.h.

std::string XMLSupport::tostring ( unsigned int  num)
inline

Definition at line 100 of file xml_support.h.

std::string XMLSupport::tostring ( long  num)
inline

Definition at line 106 of file xml_support.h.

std::string XMLSupport::tostring ( float  num)
inline

Definition at line 112 of file xml_support.h.

std::string XMLSupport::tostring5 ( unsigned short  num)
inline

Definition at line 88 of file xml_support.h.

std::string XMLSupport::VectorToString ( const Vector &  v)
inline

Definition at line 124 of file xml_support.h.