#ifndef CONVERTER_INCLUDED #define CONVERTER_INCLUDED #include #include #include "tinyxml2.hh" using namespace tinyxml2; class Converter { public: Converter(std::string level); Converter(); ~Converter(); void updateComposition(unsigned int idG, unsigned int idB, float posX, float posZ); std::vector newComposition(unsigned int type, float posX, float posZ); void deleteComposition(unsigned int idG, unsigned int idB); void save(); std::vector getNextID(); private: std::vector nextID; std::string xmlFile; XMLDocument* doc = new XMLDocument(); XMLDocument* compositions = new XMLDocument(); }; #endif