ept::apt::Apt Class Reference

#include <apt.h>

List of all members.


Detailed Description

High-level access to the Apt cache, as a data provider for the ept framework.

This class wraps the Apt cache and allows to query it in various ways.

Public Types

typedef Iterator iterator
typedef RecordIterator record_iterator

Public Member Functions

 Apt ()
 Create the Apt data provider.
 ~Apt ()
iterator begin () const
iterator end () const
record_iterator recordBegin () const
record_iterator recordEnd () const
size_t size () const
 Return the number of packages in the archive.
bool isValid (const std::string &pkg) const
 Validate a package name, returning trye if it exists in the APT database, or false if it does not.
std::string validate (const std::string &pkg) const
 Validate a package name, returning it if it exists in the APT database, or returning the empty string if it does not.
Version validate (const Version &ver) const
 Validate a Version, returning it if it exists in the APT database, or returning the invalid version if it does not.
Version installedVersion (const std::string &pkg) const
 Return the installed version for a package.
Version candidateVersion (const std::string &pkg) const
 Return the candidate version for a package.
Version anyVersion (const std::string &pkg) const
 Return the candidate version for a package, if available, or the installed version otherwise.
PackageState state (const std::string &pkg) const
 Return state information on a package.
std::string rawRecord (const std::string &pkg) const
 Perform a package search.
std::string rawRecord (const Version &ver) const
 Get the raw package record for the given Version.
time_t timestamp ()
 Timestamp of when the apt index was last modified.

Protected Attributes

AptImplementation * impl

Classes

class  Iterator
class  RecordIterator


Member Typedef Documentation

typedef Iterator ept::apt::Apt::iterator

typedef RecordIterator ept::apt::Apt::record_iterator


Constructor & Destructor Documentation

ept::apt::Apt::Apt (  ) 

Create the Apt data provider.

ept::apt::Apt::~Apt (  ) 


Member Function Documentation

Apt::iterator ept::apt::Apt::begin (  )  const

Apt::iterator ept::apt::Apt::end (  )  const

Apt::record_iterator ept::apt::Apt::recordBegin (  )  const

Apt::record_iterator ept::apt::Apt::recordEnd (  )  const

size_t ept::apt::Apt::size (  )  const

Return the number of packages in the archive.

bool ept::apt::Apt::isValid ( const std::string &  pkg  )  const

Validate a package name, returning trye if it exists in the APT database, or false if it does not.

std::string ept::apt::Apt::validate ( const std::string &  pkg  )  const [inline]

Validate a package name, returning it if it exists in the APT database, or returning the empty string if it does not.

Version ept::apt::Apt::validate ( const Version ver  )  const

Validate a Version, returning it if it exists in the APT database, or returning the invalid version if it does not.

Version ept::apt::Apt::installedVersion ( const std::string &  pkg  )  const

Return the installed version for a package.

Version ept::apt::Apt::candidateVersion ( const std::string &  pkg  )  const

Return the candidate version for a package.

Version ept::apt::Apt::anyVersion ( const std::string &  pkg  )  const

Return the candidate version for a package, if available, or the installed version otherwise.

PackageState ept::apt::Apt::state ( const std::string &  pkg  )  const

Return state information on a package.

std::string ept::apt::Apt::rawRecord ( const std::string &  pkg  )  const

Perform a package search.

All packages for which the functor filter returns true, are passed to the functor out. Get the raw package record for the given Version

std::string ept::apt::Apt::rawRecord ( const Version ver  )  const

Get the raw package record for the given Version.

time_t ept::apt::Apt::timestamp (  ) 

Timestamp of when the apt index was last modified.


Member Data Documentation

AptImplementation* ept::apt::Apt::impl [protected]


The documentation for this class was generated from the following files:
Generated on Fri Sep 14 23:13:30 2007 for libept by  doxygen 1.5.3