260319.4 · fbd7be06a65febf23cdb4704451a32365c305293
refactored BBCodeGenerator class to use C++17 features
reading declarations
Changes to src/include/bbcodegenerator.h. All files
@@ -55,18 +55,18 @@ public: /** prints document header */- std::string getHeader();+ std::string getHeader() override; /** Prints document footer*/- std::string getFooter();+ std::string getFooter() override; /** Prints document body*/- void printBody();+ void printBody() override; private: /** \return escaped character*/- virtual std::string maskCharacter ( unsigned char );+ std::string maskCharacter ( unsigned char ) override; /** @return BBcode open tags */ std::string getOpenTag (const ElementStyle & elem );@@ -75,15 +75,15 @@ private: std::string getCloseTag ( const ElementStyle &elem ); /** initialize tags in specific format according to colouring information provided in DocumentStyle */- void initOutputTags();+ void initOutputTags() override; /** @param styleID current style ID @return matching sequence to begin a new element formatting*/- std::string getKeywordOpenTag ( unsigned int styleID );+ std::string getKeywordOpenTag ( unsigned int styleID ) override; /** @param styleID current style ID @return matching sequence to stop element formatting*/- std::string getKeywordCloseTag ( unsigned int styleID );+ std::string getKeywordCloseTag ( unsigned int styleID ) override; }; }