Cupt
Classes | Public Member Functions | List of all members
cupt::system::State Class Reference

stores an additional information for installed packages More...

#include <cupt/system/state.hpp>

Classes

struct  InstalledRecord
 installed package's information More...
 

Public Member Functions

CUPT_LOCAL State (shared_ptr< const Config >, internal::CacheImpl *)
 constructor, not for public use
 
 ~State ()
 destructor
 
const InstalledRecordgetInstalledInfo (const string &packageName) const
 gets installed record for a package More...
 
vector< string > getInstalledPackageNames () const
 gets installed package names More...
 
string getArchitecture () const
 gets system binary architecture
 

Detailed Description

stores an additional information for installed packages

Member Function Documentation

◆ getInstalledInfo()

const InstalledRecord* cupt::system::State::getInstalledInfo ( const string &  packageName) const

gets installed record for a package

Parameters
packageName
Returns
pointer to InstalledRecord if found, empty pointer if not

◆ getInstalledPackageNames()

vector< string > cupt::system::State::getInstalledPackageNames ( ) const

gets installed package names

Returns
array of package names

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