00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YRpmGroupsTree.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 #ifndef YRpmGroupsTree_h 00020 #define YRpmGroupsTree_h 00021 00022 00023 #include <y2util/YStringTree.h> 00024 00025 00029 class YRpmGroupsTree: public YStringTree 00030 { 00031 public: 00032 00037 YRpmGroupsTree(); 00038 00042 virtual ~YRpmGroupsTree(); 00043 00050 YStringTreeItem * addRpmGroup( const std::string & rpmGroup ) 00051 { return addBranch( rpmGroup, '/' ); } 00052 00056 std::string rpmGroup( const YStringTreeItem * node ) 00057 { return origPath( node, '/', false ); } 00058 00062 std::string translatedRpmGroup( const YStringTreeItem * node ) 00063 { return translatedPath( node, '/', false ); } 00064 00068 void addFallbackRpmGroups(); 00069 }; 00070 00071 00072 00073 #endif // YRpmGroupsTree_h