| 13 | namespace mdf { |
| 14 | |
| 15 | bool MdList::IsActive() const { |
| 16 | // If the name is empty. It might be the root element |
| 17 | return !name_.empty() || !desc_.empty() || !property_list_.empty() |
| 18 | || !tree_list_.empty() || !list_list_.empty() |
| 19 | || !enumerate_list_.empty(); |
| 20 | } |
| 21 | |
| 22 | void MdList::Name(std::string name) { |
| 23 | name_ = std::move(name); |