paludis  Version 2.6.0
Public Member Functions | Friends | List of all members
paludis::DistributionData Class Reference

#include <distribution.hh>

+ Inheritance diagram for paludis::DistributionData:

Public Member Functions

std::shared_ptr< const Distributiondistribution_from_string (const std::string &) const
- Public Member Functions inherited from paludis::Singleton< OurType_ >
 Singleton ()=default
 Singleton (const Singleton &)=delete
const Singletonoperator= (const Singleton &)=delete


class Singleton< DistributionData >

Additional Inherited Members

- Static Public Member Functions inherited from paludis::Singleton< OurType_ >
static OurType_ * get_instance () PALUDIS_ATTRIBUTE((warn_unused_result))
static void destroy_instance ()

Detailed Description

Fetch information about a distribution.

Paludis avoids hardcoding certain distribution-related information to make things easier for other distributions. Instead, DistributionData is used to fetch a Distribution class instance. The distribution_from_string method is almost always called with the return value of Environment::distribution as its parameter.


Member Function Documentation

std::shared_ptr<const Distribution> paludis::DistributionData::distribution_from_string ( const std::string &  ) const

Fetch a distribution from a named string.

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