From 673f1939beb1b477a23d9641a07a2e05fff903b4 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 26 Feb 2022 20:12:54 +0800 Subject: ... --- include/cru/ui/mapper/Mapper.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/mapper/Mapper.h') diff --git a/include/cru/ui/mapper/Mapper.h b/include/cru/ui/mapper/Mapper.h index fa7f8cef..5bf140cd 100644 --- a/include/cru/ui/mapper/Mapper.h +++ b/include/cru/ui/mapper/Mapper.h @@ -38,12 +38,17 @@ class CRU_UI_API MapperBase : public Object { virtual bool SupportMapFromString() { return false; } virtual bool SupportMapFromXml() { return false; } - virtual bool XmlElementIsOfThisType(xml::XmlElementNode* node) { - return false; + virtual bool XmlElementIsOfThisType(xml::XmlElementNode* node); + + protected: + void SetAllowedTags(std::vector allowed_tags) { + allowed_tags_ = std::move(allowed_tags); } private: std::type_index type_index_; + + std::vector allowed_tags_; }; template -- cgit v1.2.3