Cupt
Public Member Functions
cupt::cache::BinaryPackage Class Reference

Package for binary versions. More...

#include <cupt/cache/binarypackage.hpp>

Inheritance diagram for cupt::cache::BinaryPackage:
cupt::cache::Package

List of all members.

Public Member Functions

 BinaryPackage (const shared_ptr< const string > &binaryArchitecture, bool allowReinstall)
vector< shared_ptr< const
BinaryVersion > > 
getVersions () const
 gets list of versions
shared_ptr< const BinaryVersiongetInstalledVersion () const
 gets installed version
- Public Member Functions inherited from cupt::cache::Package
 Package (const shared_ptr< const string > &binaryArchitecture)
virtual ~Package ()
 destructor
void addEntry (const Version::InitializationParameters &)
 adds new element (version initialization parameters) to the container
shared_ptr< const VersiongetSpecificVersion (const string &versionString) const
 gets version with a certain Version::versionString

Additional Inherited Members

- Static Public Attributes inherited from cupt::cache::Package
static bool memoize
 memoize parsed versions

Detailed Description

Package for binary versions.


Constructor & Destructor Documentation

cupt::cache::BinaryPackage::BinaryPackage ( const shared_ptr< const string > &  binaryArchitecture,
bool  allowReinstall 
)

constructor

Parameters:
binaryArchitecturesystem binary architecture
allowReinstallallow reinstalling installed version of this package, i.e. mangle the version string of installed version

Member Function Documentation

shared_ptr< const BinaryVersion > cupt::cache::BinaryPackage::getInstalledVersion ( ) const

gets installed version

Returns:
installed version if exists, empty pointer if not

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