#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(int idG, int idB, float posX, float posZ); //updates the position of a composition std::vector newComposition(int type, float posX, float posZ);//creates a new composition and returns its ID void deleteComposition(int idG, int idB); void save(); //writes the xml to file std::vector getNextID(); //returns the next unused ID private: void errorCheck(XMLError error); std::vector nextID; std::string xmlFile; XMLDocument* doc = new XMLDocument(); XMLDocument* compositions = new XMLDocument(); }; #endif