From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/ui/mapper/style/AndConditionMapper.h | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/cru/ui/mapper/style/AndConditionMapper.h (limited to 'include/cru/ui/mapper/style/AndConditionMapper.h') diff --git a/include/cru/ui/mapper/style/AndConditionMapper.h b/include/cru/ui/mapper/style/AndConditionMapper.h new file mode 100644 index 00000000..142637a7 --- /dev/null +++ b/include/cru/ui/mapper/style/AndConditionMapper.h @@ -0,0 +1,25 @@ +#pragma once +#include "../Mapper.h" +#include "IConditionMapper.h" + +namespace cru::ui::mapper::style { +class CRU_UI_API AndConditionMapper + : public BasicPtrMapper, + public virtual IConditionMapper { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(AndConditionMapper) + + 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