Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

MaintainerSet.h

Go to the documentation of this file.
00001 #ifndef DEBTAGS_MAINTAINER_SET_H
00002 #define DEBTAGS_MAINTAINER_SET_H
00003 
00004 /*
00005  * Central class to perform package searches
00006  *
00007  * Copyright (C) 2003  Enrico Zini <enrico@debian.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  */
00023 
00024 #pragma interface
00025 
00026 #include <tagcoll/OpSet.h>
00027 #include <debtags/Maintainer.h>
00028 
00029 namespace Tagcoll
00030 {
00031 class FacetSet;
00032 class TagSet;
00033 };
00034 
00035 namespace Debtags
00036 {
00037 using namespace Tagcoll;
00038 class PackageSet;
00039 
00040 class MaintainerSet : public OpSet<Debtags::Maintainer>
00041 {
00042 public:
00043     using OpSet<Debtags::Maintainer>::find;
00044 
00045     MaintainerSet() throw ();
00046     MaintainerSet(const OpSet<Debtags::Maintainer>&) throw ();
00047     ~MaintainerSet() throw ();
00048 
00049     // Get the Maintainer object given the package name
00050     Maintainer find(const std::string& name) const throw ();
00051 
00052     // Get all the packages maintained by these maintainers
00053     PackageSet getPackages() const throw ();
00054 
00055     // Get all the facets of the tags of the packages maintained by these maintainers
00056     FacetSet getFacets() const throw ();
00057 
00058     // Get all the tags of the packages maintained by these maintainers
00059     TagSet getTags() const throw ();
00060 };
00061 
00062 };
00063 
00064 // vim:set ts=4 sw=4:
00065 #endif

Generated on Sat Mar 19 17:12:09 2005 for libdebtags by  doxygen 1.4.1