Pol  Rev 533
Package Class Reference

#include <pkg.h>

+ Collaboration diagram for Package:

List of all members.

Public Member Functions

 Package (const std::string &pkg_dir, ConfigElem &elem)
void check_conflicts () const
void check_dependencies () const
bool check_replacements () const
std::string desc () const
const std::string & dir () const
const std::string & name () const
bool provides_system_home_page () const
const std::string & version () const

Private Member Functions

 Package (const Package &)
Packageoperator= (const Package &)

Private Attributes

PackageList conflicts_
unsigned short core_required_
std::string core_versionstring_required_
std::string dir_
std::string name_
bool provides_system_home_page_
PackageList replaces_
PackageList requires_
std::string version_

Detailed Description

Definition at line 33 of file pkg.h.


Constructor & Destructor Documentation

Package::Package ( const std::string &  pkg_dir,
ConfigElem elem 
)

Definition at line 140 of file pkg.cpp.

References core_required_, core_versionstring_required_, mklower(), name_, ConfigElem::read_string(), ConfigElem::remove_string(), and ConfigElem::remove_ushort().

+ Here is the call graph for this function:

Package::Package ( const Package ) [private]

Member Function Documentation

void Package::check_conflicts ( ) const

Definition at line 236 of file pkg.cpp.

References conflicts_, desc(), PackageList::elems, find_package(), and PackageList::Elem::pkgname.

Referenced by check_deps_for_package().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 189 of file pkg.cpp.

References check_version2(), core_required_, core_versionstring_required_, desc(), dir_, PackageList::elems, find_package(), name_, PackageList::Elem::pkgname, polver, polverstr, requires_, PackageList::Elem::version, and version_.

Referenced by check_deps_for_package().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 170 of file pkg.cpp.

References desc(), PackageList::elems, find_package(), PackageList::Elem::pkgname, remove_package(), and replaces_.

Referenced by check_replaced_packages(), and replace_packages().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

string Package::desc ( ) const

Definition at line 165 of file pkg.cpp.

References dir(), and name().

Referenced by check_conflicts(), check_dependencies(), check_replacements(), config_web_server(), load_attribute_entry(), load_package(), and load_vital_entry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Package& Package::operator= ( const Package ) [private]

Definition at line 23 of file pkg.cpp.

References provides_system_home_page_.

Referenced by config_web_server().

+ Here is the caller graph for this function:

const std::string & Package::version ( ) const [inline]

Definition at line 79 of file pkg.h.

References version_.

Referenced by load_package().

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 58 of file pkg.h.

Referenced by check_conflicts().

unsigned short Package::core_required_ [private]

Definition at line 54 of file pkg.h.

Referenced by check_dependencies(), and Package().

Definition at line 55 of file pkg.h.

Referenced by check_dependencies(), and Package().

std::string Package::dir_ [private]

Definition at line 49 of file pkg.h.

Referenced by check_dependencies(), and dir().

std::string Package::name_ [private]

Definition at line 50 of file pkg.h.

Referenced by check_dependencies(), name(), and Package().

Definition at line 61 of file pkg.h.

Referenced by provides_system_home_page().

Definition at line 59 of file pkg.h.

Referenced by check_replacements().

Definition at line 57 of file pkg.h.

Referenced by check_dependencies().

std::string Package::version_ [private]

Definition at line 51 of file pkg.h.

Referenced by check_dependencies(), and version().


The documentation for this class was generated from the following files: