#include <dep_spec.hh>
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 |
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.
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_ >.