1 | // Aseprite |
2 | // Copyright (C) 2017 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifndef APP_I18N_XML_TRANSLATOR_INCLUDED |
8 | #define APP_I18N_XML_TRANSLATOR_INCLUDED |
9 | #pragma once |
10 | |
11 | #include <string> |
12 | |
13 | class TiXmlElement; |
14 | |
15 | namespace app { |
16 | |
17 | class XmlTranslator { |
18 | public: |
19 | std::string operator()(const TiXmlElement* elem, |
20 | const char* attrName); |
21 | |
22 | void clearStringIdPrefix(); |
23 | void setStringIdPrefix(const char* prefix); |
24 | |
25 | private: |
26 | std::string m_stringIdPrefix; |
27 | }; |
28 | |
29 | } // namespace app |
30 | |
31 | #endif |
32 | |