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
|