aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/Mapper.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-26 20:12:54 +0800
committercrupest <crupest@outlook.com>2022-02-26 20:12:54 +0800
commit673f1939beb1b477a23d9641a07a2e05fff903b4 (patch)
tree048ba6b4eab749266d8e2ec05df182bedcf3499f /include/cru/ui/mapper/Mapper.h
parent65e288c40a593965b41378755f7111c56e123295 (diff)
downloadcru-673f1939beb1b477a23d9641a07a2e05fff903b4.tar.gz
cru-673f1939beb1b477a23d9641a07a2e05fff903b4.tar.bz2
cru-673f1939beb1b477a23d9641a07a2e05fff903b4.zip
...
Diffstat (limited to 'include/cru/ui/mapper/Mapper.h')
-rw-r--r--include/cru/ui/mapper/Mapper.h9
1 files changed, 7 insertions, 2 deletions
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<String> allowed_tags) {
+ allowed_tags_ = std::move(allowed_tags);
}
private:
std::type_index type_index_;
+
+ std::vector<String> allowed_tags_;
};
template <typename T>