aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/StringMapper.h
blob: 01f58c775074d42509d00bfff51f4f34f74d30e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "Mapper.h"

#include <cru/base/String.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(std::string str) override;
  String DoMapFromXml(xml::XmlElementNode* node) override;
};
}  // namespace cru::ui::mapper