#pragma once #include #include class BBCode { public: struct Tag { int type; int value; std::string name; std::string argument; std::vector contents; Tag() : type(0), value(0) { } }; Tag root; void parse(const std::string& content); void clear(); BBCode(); ~BBCode(); };