File: EncoderTypes.hh

package info (click to toggle)
packup 0.6-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 832 kB
  • sloc: cpp: 10,857; makefile: 111; sh: 6
file content (40 lines) | stat: -rw-r--r-- 2,248 bytes parent folder | download | duplicates (5)
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
/******************************************************************************\
 *    This file is part of packup.                                            *
 *                                                                            *
 *    packup is free software: you can redistribute it and/or modify          *
 *    it under the terms of the GNU General Public License as published by    *
 *    the Free Software Foundation, either version 3 of the License, or       *
 *    (at your option) any later version.                                     *
 *                                                                            *
 *    packup is distributed in the hope that it will be useful,               *
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
 *    GNU General Public License for more details.                            *
 *                                                                            *
 *    You should have received a copy of the GNU General Public License       *
 *    along with packup.  If not, see <http://www.gnu.org/licenses/>.         *            
\******************************************************************************/           
/* 
 * File:   EncoderTypes.hh
 * Author: mikolas
 *
 * Created on September 26, 2010, 7:35 PM
 * Copyright (C) 2011, Mikolas Janota
 */

#ifndef ENCODERTYPES_HH
#define	ENCODERTYPES_HH
#include "collections.hh"
#include "InstallableUnit.hh"
typedef vector <InstallableUnit*> UnitVector;
typedef vector <CONSTANT InstallableUnit*> UnitConstantVector;
typedef unordered_map<string, UnitVector*> PackageUnits;
typedef unordered_map<string, UnitConstantVector*> PackageConstantUnits;
typedef unordered_map<PackageVersion, UnitVector*, hash_package_version, eq_package_version> FeatureToUnits;

void record_version (PackageToVersions& vvs, const string& name, Version version);
void record_version (FeatureToVersions& vvs, const string& name, Version version);
void record_unit(FeatureToUnits& ftu, CONSTANT PackageVersion& feature, InstallableUnit *unit);
void record_unit (PackageUnits& pu, InstallableUnit *unit);
#endif	/* ENCODERTYPES_HH */