pfcrender  1.0.1
Common::Config_Registry Class Reference

The Config_Registry singleton is a global configuration store singleton It is fed from filesystem, CLI, and GUI. More...

#include <Config_Registry.h>

Public Slots

const QString getOpt (const QString &optName) const
 Config_Registry::getOpt. More...
 
void setOpt (const QString &optName, const QString &optValue)
 
void setOpt (const QPair< QString, QString > &)
 

Public Member Functions

 ~Config_Registry ()
 Config_Registry::~Config_Registry Since this is a singleton class, this destructor only gets called on program end and is responsible for saving the application state. More...
 
void add_to_sequence (const QString &name)
 
void clearSequence ()
 
const QVector< QString > getSequence () const
 

Static Public Member Functions

static Config_RegistrygetInstance ()
 

Private Member Functions

 Config_Registry ()
 
void store_to_file ()
 

Private Attributes

QHash< QString, QString > m_options
 XXX: Old style leaky singleton. Should be a more C++11 style definiton. More...
 
QVector< QString > m_sequence
 
QSettings m_set
 

Static Private Attributes

static Config_Registryinstance = nullptr
 

Detailed Description

The Config_Registry singleton is a global configuration store singleton It is fed from filesystem, CLI, and GUI.

Constructor & Destructor Documentation

Common::Config_Registry::Config_Registry ( )
private

Referenced by getInstance().

Common::Config_Registry::~Config_Registry ( )

Config_Registry::~Config_Registry Since this is a singleton class, this destructor only gets called on program end and is responsible for saving the application state.

References store_to_file().

Member Function Documentation

void Common::Config_Registry::add_to_sequence ( const QString &  name)
void Common::Config_Registry::clearSequence ( )
const QString Common::Config_Registry::getOpt ( const QString &  optName) const
slot
const QVector< QString > Common::Config_Registry::getSequence ( ) const

References m_sequence.

void Common::Config_Registry::setOpt ( const QString &  optName,
const QString &  optValue 
)
slot

References m_options.

Referenced by Test_GUI::initTestCase(), and setOpt().

void Common::Config_Registry::setOpt ( const QPair< QString, QString > &  p)
slot

References setOpt().

void Common::Config_Registry::store_to_file ( )
private

References m_options, and m_set.

Referenced by ~Config_Registry().

Member Data Documentation

Config_Registry * Common::Config_Registry::instance = nullptr
staticprivate

Referenced by getInstance().

QHash<QString, QString> Common::Config_Registry::m_options
private

XXX: Old style leaky singleton. Should be a more C++11 style definiton.

Referenced by getOpt(), setOpt(), and store_to_file().

QVector<QString> Common::Config_Registry::m_sequence
private
QSettings Common::Config_Registry::m_set
private

Referenced by store_to_file().


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