aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/vdb_id.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-03 17:16:50 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-03 17:16:50 +0000
commit63c8baae4819e82d0c03e5524b032d228dbb3487 (patch)
treeb362f6ea349ebbb2d12ea13b50c2d8f2b1932989 /paludis/repositories/e/vdb_id.hh
parent76dc8b38fcf2ff3619098b383ebacee3d7b5a35f (diff)
downloadpaludis-63c8baae4819e82d0c03e5524b032d228dbb3487.tar.gz
paludis-63c8baae4819e82d0c03e5524b032d228dbb3487.tar.xz
Split up VDBRepository. Add a new experimental Exndbam repository, which can replace VDB on systems that don't need EAPI 0/1 support.
Diffstat (limited to 'paludis/repositories/e/vdb_id.hh')
-rw-r--r--paludis/repositories/e/vdb_id.hh67
1 files changed, 6 insertions, 61 deletions
diff --git a/paludis/repositories/e/vdb_id.hh b/paludis/repositories/e/vdb_id.hh
index 6c1481c71..015b9bc8d 100644
--- a/paludis/repositories/e/vdb_id.hh
+++ b/paludis/repositories/e/vdb_id.hh
@@ -20,80 +20,25 @@
#ifndef PALUDIS_GUARD_PALUDIS_REPOSITORIES_GENTOO_VDB_ID_HH
#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_GENTOO_VDB_ID_HH 1
-#include <paludis/package_id.hh>
-#include <paludis/metadata_key.hh>
-#include <paludis/environment-fwd.hh>
-#include <paludis/util/fs_entry-fwd.hh>
-#include <paludis/repositories/e/e_repository_id.hh>
+#include <paludis/repositories/e/e_installed_repository_id.hh>
namespace paludis
{
namespace erepository
{
class VDBID :
- public ERepositoryID,
- public tr1::enable_shared_from_this<VDBID>,
- private PrivateImplementationPattern<VDBID>
+ public EInstalledRepositoryID
{
- private:
- PrivateImplementationPattern<VDBID>::ImpPtr & _imp;
-
- protected:
- virtual void need_keys_added() const;
- virtual void need_masks_added() const;
-
public:
VDBID(const QualifiedPackageName &, const VersionSpec &,
const Environment * const,
const tr1::shared_ptr<const Repository> &,
const FSEntry & file);
- ~VDBID();
-
- virtual const std::string canonical_form(const PackageIDCanonicalForm) const;
-
- virtual const QualifiedPackageName name() const;
- virtual const VersionSpec version() const;
- virtual const SlotName slot() const;
- virtual const tr1::shared_ptr<const Repository> repository() const;
- virtual const tr1::shared_ptr<const EAPI> eapi() const;
-
- virtual const tr1::shared_ptr<const MetadataPackageIDKey> virtual_for_key() const;
- virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataCollectionKey<KeywordNameSet> > eclass_keywords_key() const;
- virtual const tr1::shared_ptr<const MetadataCollectionKey<IUseFlagSet> > iuse_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<ProvideSpecTree> > provide_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > build_dependencies_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > run_dependencies_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > post_dependencies_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<DependencySpecTree> > suggested_dependencies_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<RestrictSpecTree> > restrict_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<FetchableURISpecTree> > fetches_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<SimpleURISpecTree> > homepage_key() const;
- virtual const tr1::shared_ptr<const MetadataStringKey> short_description_key() const;
- virtual const tr1::shared_ptr<const MetadataStringKey> long_description_key() const;
- virtual const tr1::shared_ptr<const MetadataContentsKey> contents_key() const;
- virtual const tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const;
- virtual const tr1::shared_ptr<const MetadataStringKey> source_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataStringKey> binary_origin_key() const;
- virtual const tr1::shared_ptr<const MetadataCollectionKey<PackageIDSequence> > contains_key() const;
- virtual const tr1::shared_ptr<const MetadataPackageIDKey> contained_in_key() const;
- virtual const tr1::shared_ptr<const MetadataFSEntryKey> fs_location_key() const;
- virtual const tr1::shared_ptr<const MetadataSizeKey> size_of_download_required_key() const;
- virtual const tr1::shared_ptr<const MetadataSizeKey> size_of_all_distfiles_key() const;
-
- virtual const tr1::shared_ptr<const MetadataCollectionKey<UseFlagNameSet> > use_key() const;
- virtual const tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > > inherited_key() const;
- virtual const tr1::shared_ptr<const MetadataSpecTreeKey<LicenseSpecTree> > license_key() const;
-
- virtual bool supports_action(const SupportsActionTestBase &) const PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual void perform_action(Action &) const;
-
- virtual bool arbitrary_less_than_comparison(const PackageID &) const
- PALUDIS_ATTRIBUTE((warn_unused_result));
-
- virtual std::size_t extra_hash_value() const
- PALUDIS_ATTRIBUTE((warn_unused_result));
+ virtual std::string fs_location_raw_name() const;
+ virtual std::string fs_location_human_name() const;
+ virtual std::string contents_filename() const;
+ virtual tr1::shared_ptr<MetadataContentsKey> make_contents_key() const;
};
}
}