aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/StringMapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/mapper/StringMapper.h')
-rw-r--r--include/cru/ui/mapper/StringMapper.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/cru/ui/mapper/StringMapper.h b/include/cru/ui/mapper/StringMapper.h
index e41ee0f9..63045eef 100644
--- a/include/cru/ui/mapper/StringMapper.h
+++ b/include/cru/ui/mapper/StringMapper.h
@@ -5,16 +5,7 @@
namespace cru::ui::mapper {
class CRU_UI_API StringMapper : public BasicMapper<std::string> {
- public:
- StringMapper();
- ~StringMapper();
-
- public:
- bool SupportMapFromString() override { return true; }
- bool SupportMapFromXml() override { return true; }
-
- protected:
- std::string DoMapFromString(std::string str) override;
- std::string DoMapFromXml(xml::XmlElementNode* node) override;
+ CRU_UI_DECLARE_CAN_MAP_FROM_STRING(std::string)
+ CRU_UI_DECLARE_CAN_MAP_FROM_XML_ELEMENT_TAG(String, std::string)
};
} // namespace cru::ui::mapper