paludis Version 3.0.2
The one true package mangler
paludis::FetchableURIDepSpec Class Reference

#include <dep_spec.hh>

Inheritance diagram for paludis::FetchableURIDepSpec:

Public Member Functions

std::string original_url () const
std::string renamed_url_suffix () const
std::string filename () const
std::shared_ptr< DepSpec > clone () const override PALUDIS_ATTRIBUTE((warn_unused_result))
Public Member Functions inherited from paludis::StringDepSpec
std::string text () const
Public Member Functions inherited from paludis::DepSpec
virtual const std::shared_ptr< const DepSpecAnnotations > maybe_annotations () const PALUDIS_ATTRIBUTE((warn_unused_result))
virtual void set_annotations (const std::shared_ptr< const DepSpecAnnotations > &)
 DepSpec (const DepSpec &)=delete
DepSpec & operator= (const DepSpec &)=delete

Basic operations

 FetchableURIDepSpec (const std::string &)

Additional Inherited Members

Protected Member Functions inherited from paludis::StringDepSpec
void set_text (const std::string &)
 StringDepSpec (const std::string &)

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

◆ clone()

std::shared_ptr< DepSpec > paludis::FetchableURIDepSpec::clone ( ) const
overridevirtual

Return a new copy of ourselves.

Implements paludis::Cloneable< DepSpec >.

References PALUDIS_ATTRIBUTE.

◆ filename()

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).

◆ original_url()

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).

◆ renamed_url_suffix()

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).


The documentation for this class was generated from the following file: