paludis::FetchableURIDepSpec Class Reference
[Dependency specifications]

#include <dep_spec.hh>

Inheritance diagram for paludis::FetchableURIDepSpec:

paludis::StringDepSpec paludis::DepSpec paludis::PrivateImplementationPattern< C_ > paludis::MetadataKeyHolder paludis::Cloneable< T_ > paludis::PrivateImplementationPattern< C_ >

List of all members.

Basic operations

 FetchableURIDepSpec (const std::string &)

Public Member Functions

std::string original_url () const
std::string renamed_url_suffix () const
std::string filename () const
virtual std::tr1::shared_ptr
< DepSpec
clone () const PALUDIS_ATTRIBUTE((warn_unused_result))

Protected Member Functions

virtual void need_keys_added () const


Detailed Description

A FetchableURIDepSpec represents a fetchable URI part.

It differs from a SimpleURIDepSpec in that it supports arrow notation. Arrows are used by exheres to allow downloading to a filename other than that used by the original URL.

Since:
0.26

Member Function Documentation

virtual void paludis::FetchableURIDepSpec::need_keys_added (  )  const [protected, virtual]

This method will be called before any of the metadata key iteration methods does its work. It can be used by subclasses to implement as-needed loading of keys.

Implements paludis::MetadataKeyHolder.

std::string paludis::FetchableURIDepSpec::original_url (  )  const

The original URL (that is, the text to the left of the arrow, if present, or the entire text otherwise).

std::string paludis::FetchableURIDepSpec::renamed_url_suffix (  )  const

The renamed URL filename (that is, the text to the right of the arrow, if present, or an empty string otherwise).

std::string paludis::FetchableURIDepSpec::filename (  )  const

The filename (that is, the renamed URL suffix, if present, or the text after the final / in the original URL otherwise).

virtual std::tr1::shared_ptr<DepSpec> paludis::FetchableURIDepSpec::clone (  )  const [virtual]

Return a new copy of ourselves.

Implements paludis::Cloneable< T_ >.


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