Cupt
sourceversion.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_SOURCEVERSION_SEEN
19#define CUPT_CACHE_SOURCEVERSION_SEEN
20
22
23#include <cupt/hashsums.hpp>
26
27namespace cupt {
28namespace cache {
29
31struct CUPT_API SourceVersion: public Version
32{
35 {
37 enum Type { BuildDepends, BuildDependsIndep, BuildDependsArch,
38 BuildConflicts, BuildConflictsIndep, BuildConflictsArch, Count };
39 static const string strings[];
40 static const char* rawStrings[];
41 };
43
46 struct FileParts
47 {
49 enum Type { Tarball, Diff, Dsc, Count };
50 static const string strings[];
51 };
52 ArchitecturedRelationLine relations[RelationTypes::Count];
53 vector< FileRecord > files[FileParts::Count];
54 vector< string > uploaders;
55 vector< string > binaryPackageNames;
56 vector< string > architectures;
57
58 virtual bool areHashesEqual(const Version* other) const;
59};
60
61} // namespace
62} // namespace
63
64#endif
65
array of architectured relation expressions
Definition: relation.hpp:208
file parts
Definition: sourceversion.hpp:47
Type
type
Definition: sourceversion.hpp:49
build-time relation types between source version and binary versions
Definition: sourceversion.hpp:35
Type
type
Definition: sourceversion.hpp:37
source version info
Definition: sourceversion.hpp:32
vector< string > architectures
array of binary architectures on which this source version may be built
Definition: sourceversion.hpp:56
virtual bool areHashesEqual(const Version *other) const
determines file equality between two versions
vector< string > binaryPackageNames
array of binary package names, which are built out of
Definition: sourceversion.hpp:55
vector< string > uploaders
array of uploaders
Definition: sourceversion.hpp:54
common version information
Definition: version.hpp:40