CARDS 2.4.140
Package manager for the NuTyX GNU/Linux distribution
pkgrm.h
1//
2// pkgrm.h
3//
4// Copyright (c) 2000 - 2005 Per Liden
5// Copyright (c) 2006 - 2013 by CRUX team (http://crux.nu)
6// Copyright (c) 2013 - 2020 by NuTyX team (http://nutyx.org)
7//
8// This program is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 2 of the License, or
11// (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21// USA.
22//
27#ifndef PKGRM_H
28#define PKGRM_H
29
30#include "pkgdbh.h"
31
32class Pkgrm : public Pkgdbh {
33public:
34 Pkgrm(const std::string& commandName) : Pkgdbh(commandName) {}
35 Pkgrm();
36 void run();
37 void run(int argc, char** argv);
38 void printHelp() const;
39
40protected:
41 void getListOfManInstalledPackages ();
42 std::set<std::string> m_listOfManInstalledPackages;
43 std::set<std::string> m_listofDependencies;
44private:
45 void getDirectDependencies(std::string& name);
46
47};
48
49#endif /* PKGRM_H */
50// vim:set ts=2 :
Definition: libcards.h:1530
Definition: libcards.h:1733