LibPkg
binary_control.h
Go to the documentation of this file.
1 // This file is part of LibPkg.
2 // Copyright � 2003 Graham Shaw.
3 // Distribution and use are subject to the GNU Lesser General Public License,
4 // a copy of which may be found in the file !LibPkg.Copyright.
5 
6 #ifndef LIBPKG_BINARY_CONTROL
7 #define LIBPKG_BINARY_CONTROL
8 
9 #include "libpkg/control.h"
10 
11 namespace pkg {
12 
13 class pkg_env;
14 
25  public control
26 {
27 public:
30 
32  virtual ~binary_control();
33 
34  std::string environment_id() const;
35  const pkg_env *package_env() const;
36 
40  int install_priority() const;
41 
42 protected:
43  virtual int priority(const string& value) const;
45  mutable int _install_priority;
46 };
47 
48 }; /* namespace pkg */
49 
50 #endif
A class to represent the enviroment a package is designed for.
Definition: env_checker.h:91
The namespace used to hold the package management library.
Definition: auto_dir.cc:12
virtual int priority(const string &value) const
Get priority.
Definition: binary_control.cc:49
pkg_env * _environment
Definition: binary_control.h:44
binary_control()
Construct binary control file.
Definition: binary_control.cc:41
A class to represent the content of a RiscPkg control file.
Definition: control.h:24
virtual ~binary_control()
Destroy binary control file.
Definition: binary_control.cc:46
std::string environment_id() const
Definition: binary_control.cc:56
int _install_priority
Definition: binary_control.h:45
int install_priority() const
Get package install priority or use environment default install priority if 0 or unset.
Definition: binary_control.cc:70
A class to represent the content of a RiscPkg binary control file.
Definition: binary_control.h:24
const pkg_env * package_env() const
Definition: binary_control.cc:61

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)