aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/StringMapper.h
blob: e41ee0f9dbdd5427854c1d8978fc40dc8d4358f2 (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 <string>

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;
};
}  // namespace cru::ui::mapper