Cupt
Main Page
Related Pages
Namespaces
Classes
Files
File List
cupt
cache
binaryversion.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_BINARYVERSION_SEEN
19
#define CUPT_CACHE_BINARYVERSION_SEEN
20
22
23
#include <
cupt/hashsums.hpp
>
24
#include <
cupt/cache/version.hpp
>
25
#include <
cupt/cache/relation.hpp
>
26
27
namespace
cupt {
28
namespace
cache {
29
31
struct
CUPT_API
BinaryVersion
:
public
Version
32
{
34
struct
RelationTypes
35
{
37
enum
Type
{ PreDepends, Depends, Recommends, Suggests, Enhances, Conflicts, Breaks, Replaces, Count };
38
static
const
string
strings[];
39
static
const
char
* rawStrings[];
40
};
41
string
architecture
;
42
uint32_t
installedSize
;
43
string
sourcePackageName
;
44
string
sourceVersionString
;
45
bool
essential
;
46
RelationLine
relations[RelationTypes::Count];
47
vector< string >
provides
;
48
string
shortDescription
;
49
string
longDescription
;
50
string
tags
;
51
FileRecord
file
;
52
53
bool
isInstalled()
const
;
54
virtual
bool
areHashesEqual(
const
shared_ptr< const Version >& other)
const
;
55
57
static
shared_ptr< BinaryVersion > parseFromFile(
const
Version::InitializationParameters
&);
58
};
59
60
}
// namespace
61
}
// namespace
62
63
#endif
64
Generated on Sat Jul 14 2012 11:18:43 for Cupt by
1.8.1.2