[╯°□°]╯︵┻━┻
 All Classes Functions Variables
XmlParser.h
00001 #include <iostream>
00002 #include <fstream>
00003 #include <string>
00004 #include <vector>
00005 #include "Vect.h"
00006 #include <map>
00007 #include "System.h"
00008 
00009 using namespace std;
00010 
00011 struct Operation{
00012         /*Operation(){
00013                 size=1;
00014                 charge=0;
00015                 masse=1;
00016                 k1=10;
00017                 k2=10;
00018                 l0=1;
00019                 l1=1;
00020                 fmax=100;
00021                 scale=1;
00022                 space=1;
00023                 K=100;
00024                 longueur=1;
00025                 rayon=1;
00026                 forceStrength=10;
00027 
00028                 position=Vect(3);
00029                 dimension=Vect({5,5,5});
00030                 angle=Vect(3);
00031                 vitesse=Vect(3);
00032                 attache1=Vect(3);
00033                 attache2=Vect(3);
00034 
00035                 gravite=false;
00036                 display=true;
00037                 amorti=false;
00038                 breakable=false;
00039                 dispBall=true;
00040 
00041                 breakDeform=false;
00042                 meshType=0;
00043 
00044                 ID=0;
00045                 ID1=0;
00046                 ID2=0;
00047         }*/
00048         string nomOp;
00049 
00050         double size;
00051         double charge;
00052         double masse;
00053         double k1;
00054         double k2;
00055         double l0;
00056         double l1;
00057         double fmax;
00058         double scale;
00059         double space;
00060         double K;
00061         double longueur;
00062         double rayon;
00063         double forceStrength;
00064 
00065         Vect position;
00066         Vect dimension;
00067         Vect angle;
00068         Vect vitesse;
00069         Vect attache1;
00070         Vect attache2;
00071 
00072         bool gravite;
00073         bool display;
00074         bool amorti;
00075         bool breakable;
00076         bool dispBall;
00077         bool collision;
00078 
00079         int breakDeform;
00080         int meshType;
00081 
00082         int ID;
00083         int ID1;
00084         int ID2;
00085 
00086         //etc...
00087 };
00088 
00089 vector<Operation> ParseurXml(string nom_fichier);
00090 void load(System& sys, string const& path);