32 auto container_taginfo = container.tagInfo();
35 bool both_are_universal =
36 !container_taginfo.isSinglePropertyTag() && !taginfo.isSinglePropertyTag();
37 bool same_tags = container_taginfo == taginfo;
39 return both_are_universal && same_tags &&
is_empty;
51 auto container_taginfo = container.tagInfo();
53 bool has_item = !container.empty();
54 bool both_are_properties =
55 container_taginfo.isSinglePropertyTag() && taginfo.isSinglePropertyTag();
56 bool same_tags = container_taginfo == taginfo;
58 return both_are_properties && same_tags && has_item;
70 auto container_taginfo = container.tagInfo();
71 bool has_item = !container.empty();
72 bool same_tags = container_taginfo == taginfo;
73 bool both_are_universal =
74 !container_taginfo.isSinglePropertyTag() && !taginfo.isSinglePropertyTag();
76 return both_are_universal && same_tags && has_item && valid_tag_name;
static const std::string T_GROUP_ITEMS
bool IsCompatibleUniversalTag(const SessionItemContainer &container, const TagInfo &taginfo)
bool IsCompatibleSinglePropertyTag(const SessionItemContainer &container, const TagInfo &taginfo)
bool IsCompatibleGroupTag(const SessionItemContainer &container, const TagInfo &taginfo)
MVVM_MODEL_EXPORT bool is_empty(const std::string &path)
Returns true if the file indicated by 'path' refers to empty file or directory.
materialitems.h Collection of materials to populate MaterialModel.