#pragma once #include "../shape/Vector2.h" #include #include "../shape/Shape.h" #include "SvgState.h" #include "../xml/pugixml.hpp" class SvgParser { public: SvgParser(juce::String svgFile); ~SvgParser(); std::vector> draw(); private: std::vector preProcessPath(std::string path); juce::String simplifyLength(juce::String length); std::pair getDimensions(pugi::xml_node&); std::vector> parsePath(juce::String); std::vector> shapes; SvgState state = SvgState(); };