Rev | Line | |
---|
[8] | 1 | // created: 2013/08/02
|
---|
| 2 | // filename: Parser.h
|
---|
| 3 | //
|
---|
| 4 | // author: César Richard
|
---|
| 5 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 6 | //
|
---|
| 7 | // version: $Id: $
|
---|
| 8 | //
|
---|
| 9 | // purpose: classe chargeant un XML decrivant une map
|
---|
| 10 | //
|
---|
| 11 | /*********************************************************************/
|
---|
| 12 |
|
---|
| 13 | #ifndef PARSER_H
|
---|
| 14 | #define PARSER_H
|
---|
| 15 |
|
---|
| 16 | #include <Gui.h>
|
---|
| 17 | #include <libxml/parser.h>
|
---|
| 18 | #include <libxml/tree.h>
|
---|
| 19 |
|
---|
| 20 | namespace flair
|
---|
| 21 | {
|
---|
| 22 | namespace simulator
|
---|
| 23 | {
|
---|
| 24 | class Parser:public Gui
|
---|
| 25 | {
|
---|
| 26 |
|
---|
| 27 | /*can create:
|
---|
| 28 | - cylinders: in y axis
|
---|
| 29 |
|
---|
| 30 | */
|
---|
| 31 | public:
|
---|
| 32 | Parser(Simulator* parent,int app_width, int app_height,int scene_width, int scene_height,std::string media_path, std::string xmlFile);
|
---|
| 33 | ~Parser();
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | private:
|
---|
| 37 | xmlDoc *doc;
|
---|
| 38 | std::string media_path;
|
---|
| 39 | Simulator* parent;
|
---|
| 40 | void processElements(xmlNode * a_node);
|
---|
| 41 | void processObjects(xmlNode * a_node);
|
---|
| 42 | void processParams(xmlNode * a_node);
|
---|
| 43 | irr::core::vector3df getMeshVect(xmlNode * mesh_node, xmlChar * param);
|
---|
| 44 | irr::core::vector3df getSceneVect(xmlNode * mesh_node, xmlChar * param, bool isScale=false);
|
---|
| 45 | };
|
---|
| 46 | }
|
---|
| 47 | }
|
---|
| 48 | #endif // PARSER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.