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
XMLType Struct Reference

#include <xml_serializer.h>

Classes

union  wordlength
 

Public Member Functions

 XMLType (bool *mybool)
 
 XMLType (double *mydouble)
 
 XMLType (int *myint)
 
 XMLType (unsigned int *myuint)
 
 XMLType (int myhardint)
 
 XMLType (float myhardfloat)
 
 XMLType (float *myfloat)
 
 XMLType (void *myvoid)
 
 XMLType (char *mychar)
 
 XMLType (unsigned char *mychar)
 
 XMLType (const std::string &s)
 
 XMLType (const std::string &s, void *v)
 
 XMLType (const std::string &s, int myhardint)
 
 XMLType (const std::string &s, float *f)
 

Public Attributes

union XMLType::wordlength w
 
std::string str
 

Detailed Description

Definition at line 9 of file xml_serializer.h.

Constructor & Destructor Documentation

XMLType::XMLType ( bool mybool)
inline

Definition at line 28 of file xml_serializer.h.

References XMLType::wordlength::b, and w.

29  {
30  w.b = mybool;
31  }
XMLType::XMLType ( double *  mydouble)
inline

Definition at line 32 of file xml_serializer.h.

References XMLType::wordlength::d, and w.

33  {
34  w.d = mydouble;
35  }
XMLType::XMLType ( int myint)
inline

Definition at line 36 of file xml_serializer.h.

References XMLType::wordlength::i, and w.

37  {
38  w.i = myint;
39  }
XMLType::XMLType ( unsigned int myuint)
inline

Definition at line 40 of file xml_serializer.h.

References XMLType::wordlength::ui, and w.

41  {
42  w.ui = myuint;
43  }
XMLType::XMLType ( int  myhardint)
inline

Definition at line 44 of file xml_serializer.h.

References XMLType::wordlength::hardint, and w.

45  {
46  w.hardint = myhardint;
47  }
XMLType::XMLType ( float  myhardfloat)
inline

Definition at line 48 of file xml_serializer.h.

References XMLType::wordlength::hardfloat, and w.

49  {
50  w.hardfloat = myhardfloat;
51  }
XMLType::XMLType ( float myfloat)
inline

Definition at line 52 of file xml_serializer.h.

References XMLType::wordlength::f, and w.

53  {
54  w.f = myfloat;
55  }
XMLType::XMLType ( void *  myvoid)
inline

Definition at line 56 of file xml_serializer.h.

References XMLType::wordlength::p, and w.

57  {
58  w.p = myvoid;
59  }
XMLType::XMLType ( char *  mychar)
inline

Definition at line 60 of file xml_serializer.h.

References XMLType::wordlength::c, and w.

61  {
62  w.c = mychar;
63  }
XMLType::XMLType ( unsigned char *  mychar)
inline

Definition at line 66 of file xml_serializer.h.

References XMLType::wordlength::uc, and w.

67  {
68  w.uc = mychar;
69  }
XMLType::XMLType ( const std::string &  s)
inline

Definition at line 70 of file xml_serializer.h.

References XMLType::wordlength::p, str, and w.

70  : str( s )
71  {
72  w.p = &this->str;
73  }
XMLType::XMLType ( const std::string &  s,
void *  v 
)
inline

Definition at line 74 of file xml_serializer.h.

References XMLType::wordlength::p, v, and w.

74  : str( s )
75  {
76  w.p = v;
77  }
XMLType::XMLType ( const std::string &  s,
int  myhardint 
)
inline

Definition at line 78 of file xml_serializer.h.

References XMLType::wordlength::hardint, and w.

78  : str( s )
79  {
80  w.hardint = myhardint;
81  }
XMLType::XMLType ( const std::string &  s,
float f 
)
inline

Definition at line 82 of file xml_serializer.h.

References XMLType::wordlength::f, and w.

82  : str( s )
83  {
84  w.f = f;
85  }

Member Data Documentation

std::string XMLType::str

The documentation for this struct was generated from the following file: