lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.5.4
LHAPDF::Config Class Reference

Class for PDF set metadata and manipulation. More...

#include <Config.h>

Inheritance diagram for LHAPDF::Config:
LHAPDF::Info

Public Member Functions

 ~Config ()
 Config destructor, used for end-of-run banner printing.
 
- Public Member Functions inherited from LHAPDF::Info
 Info ()
 Default constructor.
 
 Info (const std::string &path)
 Constructor.
 
virtual ~Info ()
 Virtual destructor to allow inheritance.
 
void load (const std::string &filepath)
 
std::vector< std::string > keys_local () const
 Get the keys defined on this specific object.
 
std::vector< std::string > keys () const
 
bool has_key_local (const std::string &key) const
 Is a value defined for the given key on this specific object?
 
virtual bool has_key (const std::string &key) const
 
const std::string & get_entry_local (const std::string &key) const
 Retrieve a metadata string by key name, as defined on this specific object.
 
virtual const std::string & get_entry (const std::string &key) const
 
virtual const std::string & get_entry (const std::string &key, const std::string &fallback) const
 Retrieve a metadata string by key name, with a default fallback.
 
template<typename T >
get_entry_as (const std::string &key) const
 
template<typename T >
get_entry_as (const std::string &key, const T &fallback) const
 Retrieve a metadata entry by key name, with an inline type cast and default fallback.
 
template<typename T >
void set_entry (const std::string &key, const T &val)
 Set a keyed value entry.
 
template<>
bool get_entry_as (const std::string &key) const
 
template<>
std::vector< std::string > get_entry_as (const std::string &key) const
 
template<>
std::vector< int > get_entry_as (const std::string &key) const
 
template<>
std::vector< double > get_entry_as (const std::string &key) const
 

Static Public Member Functions

Fetching/creation
static Configget ()
 

Private Member Functions

 Config ()
 Hide the default constructor.
 

Additional Inherited Members

- Protected Attributes inherited from LHAPDF::Info
std::map< std::string,
std::string > 
_metadict
 The string -> string native metadata storage container.
 

Detailed Description

Class for PDF set metadata and manipulation.

Member Function Documentation

static Config& LHAPDF::Config::get ( )
static

Get the global configuration object

The global config is populated by reading from lhapdf.conf if it is found in the search paths. It is a singleton, hence the 'get' accessor rather than a constructor.

Note
The LHAPDF system is responsible for deletion of the returned object. Do NOT delete it yourself!

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