ENH: Adding more advance Category support
-
Attribute
- New Methods
- categories() - returns a reference to the Categories object associated with the Attribute
- Removed Methods
- isMemberOf(...) -> replace with categories().passes(...)
- New Methods
-
Definition
- Changed Methods
- categories() - now returns a reference to the Categories object associated with the Definition
- localCategories() - now returns a reference to the Categories::Set object associated with the Definition's local categories
- applyCategories - method now takes in Categories and a set of strings
- Removed Methods
- isMemberOf(...) -> replace with categories().passes(...)
- numberOfCategories() - replaced with categories().size()
- addLocalCategories(...) - replaced with localCategories().insert(...)
- removeLocalCategories(...) - replaced with localCategories().erase(...)
- Changed Methods
-
ItemDefinition
- Changed Methods
- categories() - now returns a reference to the Categories object associated with the ItemDefinition
- localCategories() - now returns a reference to the Categories::Set object associated with the ItemDefinition's local categories
- applyCategories - method now takes in Categories and a set of strings
- CategoryCheckMode Enums removed - replaced by Categories::Set::CombinationMode
- Removed Methods
- isMemberOf(...) -> replace with categories().passes(...)
- numberOfCategories() - replaced with categories().size()
- addLocalCategories(...) - replaced with localCategories().insert(...)
- removeLocalCategories(...) - replaced with localCategories().erase(...)
- setCategoryCheckMode(...) - replaced with localCategories().setMode(...)
- categoryCheckMode() - replaced with localCategories().mode()
- Changed Methods
-
Item
- New Methods
- categories() - returns a reference to the Categories object associated with the Item
- Removed Methods
- isMemberOf(...) -> replace with categories().passes(...)
- passCategoryCheck(...) - replaced with categories().passes(...)
- New Methods
-
ValueItemDefinition
- Changed Methods
- setEnumCategories - now takes in Categories::Set instead of a set of strings
- enumCategories - now returns a const reference to a Categories::Set instead of a set of strings
- Changed Methods
-
Also removed depricated std::ptr_fun from StringUtil.cxx
Addresses Issue #315 (closed)
Edited by Robert M. O'Bara