Cupt
cupt
cache
binarypackage.hpp
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010 by Eugene V. Lyubimkin *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License *
6
* (version 3 or above) as published by the Free Software Foundation. *
7
* *
8
* This program is distributed in the hope that it will be useful, *
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11
* GNU General Public License for more details. *
12
* *
13
* You should have received a copy of the GNU GPL *
14
* along with this program; if not, write to the *
15
* Free Software Foundation, Inc., *
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17
**************************************************************************/
18
#ifndef CUPT_CACHE_BINARYPACKAGE_SEEN
19
#define CUPT_CACHE_BINARYPACKAGE_SEEN
20
22
23
#include <cupt/fwd.hpp>
24
#include <
cupt/cache/package.hpp
>
25
26
namespace
cupt {
27
namespace
cache {
28
30
class
CUPT_API
BinaryPackage
:
public
Package
31
{
32
protected
:
34
CUPT_LOCAL
virtual
unique_ptr< Version > _parse_version(
const
internal::VersionParseParameters&)
const
;
35
CUPT_LOCAL
virtual
bool
_is_architecture_appropriate(
const
string
&,
const
Version
*)
const
;
37
public
:
39
BinaryPackage
();
41
vector< const BinaryVersion* >
getVersions
()
const
;
43
46
const
BinaryVersion
*
getInstalledVersion
()
const
;
47
48
typedef
internal::BasePackageIterator< BinaryVersion > iterator;
49
iterator begin()
const
;
50
iterator end()
const
;
51
};
52
53
}
54
}
55
56
#endif
57
cupt::cache::BinaryPackage
Package for binary versions.
Definition:
binarypackage.hpp:31
cupt::cache::BinaryPackage::BinaryPackage
BinaryPackage()
constructor
cupt::cache::Version
common version information
Definition:
version.hpp:40
cupt::cache::Package
a container for all versions of the same package name
Definition:
package.hpp:57
cupt::cache::BinaryPackage::getVersions
vector< const BinaryVersion * > getVersions() const
gets list of versions
cupt::cache::BinaryPackage::getInstalledVersion
const BinaryVersion * getInstalledVersion() const
gets installed version
cupt::cache::BinaryVersion
binary version info
Definition:
binaryversion.hpp:32
package.hpp
Generated by
1.8.20