From 1cc6e51838fcd5fc986dbb3e13bbb85f11a348be Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 24 Jan 2022 17:52:47 +0800 Subject: ... --- include/cru/ui/mapper/style/OrConditionMapper.hpp | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/cru/ui/mapper/style/OrConditionMapper.hpp (limited to 'include/cru/ui/mapper/style/OrConditionMapper.hpp') diff --git a/include/cru/ui/mapper/style/OrConditionMapper.hpp b/include/cru/ui/mapper/style/OrConditionMapper.hpp new file mode 100644 index 00000000..252d8340 --- /dev/null +++ b/include/cru/ui/mapper/style/OrConditionMapper.hpp @@ -0,0 +1,24 @@ +#pragma once +#include "../Mapper.hpp" +#include "IConditionMapper.hpp" + +namespace cru::ui::mapper::style { +class OrConditionMapper : public BasicPtrMapper, + public virtual IConditionMapper { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(OrConditionMapper) + + public: + bool SupportMapFromXml() override { return true; } + bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + + ClonablePtr MapConditionFromXml( + xml::XmlElementNode* node) override { + return MapFromXml(node); + } + + protected: + ClonablePtr DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper::style -- cgit v1.2.3