diff options
Diffstat (limited to 'include/cru/ui/mapper/StringMapper.h')
-rw-r--r-- | include/cru/ui/mapper/StringMapper.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/StringMapper.h b/include/cru/ui/mapper/StringMapper.h new file mode 100644 index 00000000..8a907591 --- /dev/null +++ b/include/cru/ui/mapper/StringMapper.h @@ -0,0 +1,18 @@ +#pragma once +#include "Mapper.h" + +namespace cru::ui::mapper { +class CRU_UI_API StringMapper : public BasicMapper<String> { + public: + StringMapper(); + ~StringMapper(); + + public: + bool SupportMapFromString() override { return true; } + bool SupportMapFromXml() override { return true; } + + protected: + String DoMapFromString(String str) override; + String DoMapFromXml(xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper |