paludis::FakeInstalledRepository Class Reference

#include <fake_installed_repository.hh>

Inheritance diagram for paludis::FakeInstalledRepository:

paludis::FakeRepositoryBase paludis::RepositoryDestinationInterface paludis::RepositoryProvidesInterface paludis::PrivateImplementationPattern< C_ > paludis::Repository paludis::PrivateImplementationPattern< C_ > paludis::PrivateImplementationPattern< C_ > paludis::RepositoryCapabilities paludis::MetadataKeyHolder paludis::PrivateImplementationPattern< C_ >

List of all members.

Basic operations

 FakeInstalledRepository (const Environment *const, const RepositoryName &, const bool supports_uninstall=true)
 ~FakeInstalledRepository ()

RepositoryFactory functions

static RepositoryName repository_factory_name (const Environment *const env, const std::tr1::function< std::string(const std::string &)> &)
static std::tr1::shared_ptr
< Repository
repository_factory_create (Environment *const env, const std::tr1::function< std::string(const std::string &)> &)
static std::tr1::shared_ptr
< const RepositoryNameSet
repository_factory_dependencies (const Environment *const env, const std::tr1::function< std::string(const std::string &)> &)

Public Member Functions

virtual bool some_ids_might_support_action (const SupportsActionTestBase &) const
virtual const
std::tr1::shared_ptr< const
MetadataValueKey< std::string > > 
format_key () const
virtual const
std::tr1::shared_ptr< const
MetadataValueKey< FSEntry > > 
location_key () const
virtual const
std::tr1::shared_ptr< const
MetadataValueKey< FSEntry > > 
installed_root_key () const

Protected Member Functions

virtual bool is_suitable_destination_for (const PackageID &) const PALUDIS_ATTRIBUTE((warn_unused_result))
virtual bool is_default_destination () const PALUDIS_ATTRIBUTE((warn_unused_result))
virtual bool want_pre_post_phases () const PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void merge (const MergeParams &)
virtual std::tr1::shared_ptr
< const ProvidesSequence
provided_packages () const PALUDIS_ATTRIBUTE((warn_unused_result))


Detailed Description

A fake repository for test cases, for installed packages.

Member Function Documentation

virtual bool paludis::FakeInstalledRepository::is_suitable_destination_for ( const PackageID  )  const [protected, virtual]

Are we a suitable destination for the specified package?

Implements paludis::RepositoryDestinationInterface.

virtual bool paludis::FakeInstalledRepository::is_default_destination (  )  const [protected, virtual]

Are we to be included in the Environment::default_destinations list?

Implements paludis::RepositoryDestinationInterface.

virtual bool paludis::FakeInstalledRepository::want_pre_post_phases (  )  const [protected, virtual]

If true, pre and post install phases will be used when writing to this destination.

This should return true for 'real' filesystem destinations (whether or not root is /, if root merges are supported), and false for intermediate destinations such as binary repositories.

Implements paludis::RepositoryDestinationInterface.

virtual void paludis::FakeInstalledRepository::merge ( const MergeParams  )  [protected, virtual]

Merge a package.

Implements paludis::RepositoryDestinationInterface.

virtual std::tr1::shared_ptr<const ProvidesSequence> paludis::FakeInstalledRepository::provided_packages (  )  const [protected, virtual]

Fetch our provided packages.

Implements paludis::RepositoryProvidesInterface.

virtual bool paludis::FakeInstalledRepository::some_ids_might_support_action ( const SupportsActionTestBase  )  const [virtual]

Might some of our IDs support a particular action?

Used to optimise PackageDatabase::query. If a repository doesn't support, say, InstallAction, a query can skip searching it entirely when looking for installable packages.

Implements paludis::Repository.

virtual const std::tr1::shared_ptr<const MetadataValueKey<std::string> > paludis::FakeInstalledRepository::format_key (  )  const [virtual]

The format_key, if non-zero, holds our repository's format. Repository implementations should not return zero here, but clients should still check.

Implements paludis::Repository.

virtual const std::tr1::shared_ptr<const MetadataValueKey<FSEntry> > paludis::FakeInstalledRepository::location_key (  )  const [virtual]

The location_key, if non-zero, holds the file or directory containing our repository's data, the format of which depends on the value of format_key.

Implements paludis::Repository.

virtual const std::tr1::shared_ptr<const MetadataValueKey<FSEntry> > paludis::FakeInstalledRepository::installed_root_key (  )  const [virtual]

The installed_root_key, if non-zero, specifies that we contain installed packages at the specified root.

This key is currently used in various places to determine whether a repository is an 'installed' repository or not.

Implements paludis::Repository.


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4