source: flair-dev/trunk/include/FlairSimulator/Parser.h@ 15

Last change on this file since 15 was 13, checked in by Bayard Gildas, 9 years ago

formatting script + include reformatted

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