source: flair-src/trunk/lib/FlairSimulator/src/Parser.h@ 26

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

sources reformatted with flair-format-dir script

File size: 1.3 KB
RevLine 
[15]1// %flair:license{
[10]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[15]4// %flair:license}
[8]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
[15]24namespace flair {
25namespace simulator {
26class Parser : public Gui {
[8]27
[15]28 /*can create:
29 - cylinders: in y axis
[8]30
[15]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);
[8]47};
48}
49}
50#endif // PARSER_H
Note: See TracBrowser for help on using the repository browser.