25 #ifndef YRpmGroupsTree_h 26 #define YRpmGroupsTree_h 29 #include "YStringTree.h" 63 {
return origPath( node,
'/',
false ); }
79 #endif // YRpmGroupsTree_h Efficient storage for RPM group tags.
void addFallbackRpmGroups()
Add a predefined set of RPM groups.
Template class for tree items that maintain sort order.
std::string rpmGroup(const YStringTreeItem *node)
Returns the complete (untranslated) RPM group tag string for 'node'.
std::string translatedRpmGroup(const YStringTreeItem *node)
Returns the complete translated RPM group tag string for 'node'.
YStringTreeItem * addBranch(const std::string &content, char delimiter=0, YStringTreeItem *parent=0)
Add a unique new branch with text content 'content' to the tree, beginning at 'parent' (root if paren...
YRpmGroupsTree()
Constructor.
Abstract base class for filter views with hierarchical filter criteria - e.g., RPM group tags...
YStringTreeItem * addRpmGroup(const std::string &rpmGroup)
Insert an RPM group into this tree if not already present.
virtual ~YRpmGroupsTree()
Destructor.
std::string translatedPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.
std::string origPath(const YStringTreeItem *item, char delimiter, bool startWithDelimiter=true)
Construct a complete original path for the specified tree item.