Mercurial > thymian
comparison 3rdparty/maddy/lineparser.h @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 /* | |
| 2 * This project is licensed under the MIT license. For more information see the | |
| 3 * LICENSE file. | |
| 4 */ | |
| 5 #pragma once | |
| 6 | |
| 7 // ----------------------------------------------------------------------------- | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 // ----------------------------------------------------------------------------- | |
| 12 | |
| 13 namespace maddy { | |
| 14 | |
| 15 // ----------------------------------------------------------------------------- | |
| 16 | |
| 17 /** | |
| 18 * LineParser | |
| 19 * | |
| 20 * @class | |
| 21 */ | |
| 22 class LineParser | |
| 23 { | |
| 24 public: | |
| 25 /** | |
| 26 * dtor | |
| 27 * | |
| 28 * @method | |
| 29 */ | |
| 30 virtual ~LineParser() {} | |
| 31 | |
| 32 /** | |
| 33 * Parse | |
| 34 * | |
| 35 * From Markdown to HTML | |
| 36 * | |
| 37 * @method | |
| 38 * @param {std::string&} line The line to interpret | |
| 39 * @return {void} | |
| 40 */ | |
| 41 virtual void Parse(std::string& line) = 0; | |
| 42 }; // class LineParser | |
| 43 | |
| 44 // ----------------------------------------------------------------------------- | |
| 45 | |
| 46 } // namespace maddy |
