File: pkgset.h

package info (click to toggle)
paco 2.0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,136 kB
  • sloc: sh: 10,464; cpp: 6,463; ansic: 338; makefile: 277; perl: 260
file content (42 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (3)
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
//=======================================================================
// pkgset.h
//-----------------------------------------------------------------------
// This file is part of the package paco
// Copyright (C) 2004-2009 David Rosal
// For more information visit http://paco.sourceforge.net
//=======================================================================

#ifndef GPACO_PKGSET_H
#define GPACO_PKGSET_H

#include <vector>
#include <iosfwd>

namespace Gpaco {

class Pkg;

class PkgSet : public std::vector<Pkg*>
{
	public:

	PkgSet();
	~PkgSet();

	PkgSet& operator+=(Pkg*);
	PkgSet& operator-=(Pkg*);

	float sizeInst() const	{ return mSizeInst; }
 
	bool hasPkg(std::string const& pkgName);

	private:

	float mSizeInst;

};

}	// namespace Gpaco


#endif  // GPACO_PKGSET_H