1 #ifndef _SX_SXPARSER_H_
2 #define _SX_SXPARSER_H_
9 #include <export/Export.h>
13 #include <sx/SXMath.h>
18 namespace parserInternal {
50 vector<_XNODE_> nodes;
95 vector<_XMLNODE_> nodes;
96 vector<_XMLNODE_> ats;
134 enum _MULTIPLICITY_ {
215 void parseNumbers(
const string &numberList, vector<double> &numbers);
217 void parseStrings(
const string &stringList, vector<string> &strings);
219 void parseSXdata1(
const string &data,
string &output);
225 void parsePLYdata1(
const string &data,
string &output);
239 EXPA vector<double> parseNumbers(
const string &numberList);
248 EXPA vector<string> parseStrings(
const string &stringList);
260 EXPA
string readFile(
string filename);
292 EXPA
virtual ~XNode();
408 EXPA
void getTags(
string location, vector<XTag *> &nodes);
427 EXPA
XTag *getFirst(
string location);
434 EXPA
XTag *getFirst();
443 EXPA
string getStrAttribute(
string ID);
452 EXPA
double getRealAttribute(
string ID);
460 EXPA
void getDirectTexts(vector<string> &texts);
468 EXPA
void getTexts(vector<string> &texts);
476 EXPA
string getDirectTexts();
484 EXPA
string getTexts();
506 EXPA
void flattenTag(
XTag &tag, map<
string,vector<double>> &ambiguousReals, map<
string,vector<string>> &ambiguousStrings);
546 EXPA
XTag *parseXMLdata(
const string &data);
847 unsigned int bytesPerPixel;
865 EXPA
Bitmap(
unsigned int width,
unsigned int height);
872 EXPA Bitmap(
unsigned int width,
unsigned int height,
unsigned int bytesPerPixel);
886 EXPA Bitmap(
const string filename);
904 EXPA
void save(
const string filename);
909 EXPA
unsigned int getWidth()
const;
914 EXPA
unsigned int getHeight()
const;
920 EXPA
unsigned int getPixelSize()
const;
934 EXPA
unsigned char *getData();
vector< _PROPERTY_ > properties
Definition: SXParser.h:187
string name
Definition: SXParser.h:176
Definition: SXParser.h:565
vector< int > types
Definition: SXParser.h:161
vector< XNode * > nodes
Definition: SXParser.h:377
vector< double > vertexAttributes
Definition: SXParser.h:595
string name
Definition: SXParser.h:93
EXPA XMesh * parsePLYdata(const string &data)
string strID
Definition: SXParser.h:101
EXPA XTag * parseSXdata(const string &data)
EXPA XTag * parseSXFile(const string path)
Definition: SXParser.h:34
map< string, string > stringAttribs
Definition: SXParser.h:364
map< string, XBuffer * > buffers
Definition: SXParser.h:639
string text
Definition: SXParser.h:318
Definition: SXParser.h:78
string text
Definition: SXParser.h:88
EXPA XMesh * parseColladaData(XTag &data)
map< string, double > realAttribs
Definition: SXParser.h:372
Definition: SXParser.h:613
Definition: SXParser.h:171
string name
Definition: SXParser.h:583
string name
Definition: SXParser.h:355
Definition: SXParser.h:266
Definition: SXParser.h:690
string strID
Definition: SXParser.h:55
int type
Definition: SXParser.h:39
Definition: SXParser.h:194
EXPA XTag * parseXMLFile(const string path)
Definition: SXParser.h:142
string eat
Definition: SXParser.h:110
unsigned int attributeSize
Definition: SXParser.h:589
EXPA XMesh * parsePLYFile(const string path)
Definition: SXParser.h:819
vector< _ELEMENT_ > elements
Definition: SXParser.h:201
Definition: SXParser.h:300
EXPA XMesh * parseColladaFile(const string path)
EXPA pair< vector< Bone >, Matrix > parseColladaSkeleton(XTag &collada)
vector< vector< double > > data
Definition: SXParser.h:211
unsigned int faceSize
Definition: SXParser.h:634
string name
Definition: SXParser.h:147
string name
Definition: SXParser.h:49
Matrix parentTransform
Definition: SXParser.h:705
vector< Bone > bones
Definition: SXParser.h:716
EXPA pair< vector< Bone >, Matrix > parseColladaSkeletonFile(const string &path)
string text
Definition: SXParser.h:44
int type
Definition: SXParser.h:83
string eat
Definition: SXParser.h:70
int multiplicity
Definition: SXParser.h:156
unsigned int count
Definition: SXParser.h:182
Matrix inverseBindPoseMatrix
Definition: SXParser.h:711
string ID
Definition: SXParser.h:696
EXPA string readFile(string filename)
string rID
Definition: SXParser.h:61
Definition: SXParser.h:337
Definition: Exception.h:13