-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.h
51 lines (45 loc) · 1.05 KB
/
Package.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Package.h - Package header
*
* Overview: Defines functions implemented in Package.cpp
*
* Author: William Keys
* Created: 7 Nov 2009
* Modified: 1 Dec 2009
*/
#include <stdlib.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <cstring>
#include <boost/regex.hpp>
#include <set>
#include <list>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <cstring>
#include <set>
#include <list>
using namespace std;
using namespace boost;
class Package
{
public:
string name;
string licence;
string version;
string section;
string size;
public:
// Constructor
Package(string pname, string plicence,string pversion,string psection,string psize);
Package();
// gets information about the defined package
Package get_package_info(string pname);
// returns a list of depences of a given pname
list< pair<string,string> > get_package_dep(string pname);
// returns a set of all the packages needed to be displayed
set<string> get_packages(string pname);
};