Stores PSRCHIVE configuration parameters. More...

#include <Config.h>

Inheritance diagram for Pulsar::Config:
Configuration

Public Member Functions

 Config ()
 Default constructor.
void set_filename (const std::string &)
 Set the configuration filename.
Public Member Functions inherited from Configuration
 Configuration (const char *filename=0)
void load (const std::string &filename)
get (const std::string &key, T default_value) const
get (const std::string &key) const
Entry * find (const std::string &key) const
const std::vector< std::string > & get_filenames () const
unsigned get_find_count () const

Static Public Member Functions

static std::string get_home ()
 Return the name of the installation directory.
static std::string get_runtime ()
 Return the name of the runtime directory.
static Configget_configuration ()
 Return the configuration key/value pairs.
static Interface * get_interface ()
 Return the text interface to the configuration parameters.
static void ensure_linkage ()
 Ensure that configuration options are linked.

Protected Member Functions

void load ()
 Load the global configuration files.

Protected Attributes

std::string filename
bool databases_loaded

Static Protected Attributes

static Configconfig = 0
 The global configuration file.
static Interface * interface = 0
 The global configuration interpreter.

Detailed Description

Stores PSRCHIVE configuration parameters.

Member Function Documentation

◆ ensure_linkage()

void Pulsar::Config::ensure_linkage ( )
static

Ensure that configuration options are linked.

This method is defined in More/Config_ensure_linage.C so that every configuration option to be defined can be included.

◆ load()

void Pulsar::Config::load ( )
protectedvirtual

Load the global configuration files.

Reimplemented from Configuration.

References Error::get_message(), and Configuration::load().


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

Generated using doxygen 1.14.0