Prefs Class Reference

#include <prefs.h>

Inheritance diagram for Prefs:

Inheritance graph
[legend]
Collaboration diagram for Prefs:

Collaboration graph
[legend]
List of all members.

Detailed Description

Singleton preferences class which is used for storing the actual config data in HydraNode core.

Definition at line 29 of file prefs.h.


Public Member Functions

Describe us to Object system
virtual uint8_t getDataCount () const
 Retrieve the number of data fields within this object.
virtual std::string getData (uint8_t num) const
 Retrieve the data at specific field.
virtual std::string getFieldName (uint8_t num) const
 Retrieve the data field name.

Static Public Member Functions

static Prefsinstance ()

Private Member Functions

 Prefs ()
 Default constructor.
 Prefs (const Prefs &)
 Copy constructor forbidden.
Prefsoperator= (Prefs &)
 Assignment operator forbidden.
 ~Prefs ()
 Destructor.

Constructor & Destructor Documentation

Prefs::Prefs  )  [private]
 

Default constructor.

Definition at line 25 of file prefs.cpp.

Prefs::Prefs const Prefs  )  [private]
 

Copy constructor forbidden.

Prefs::~Prefs  )  [private]
 

Destructor.

Definition at line 26 of file prefs.cpp.


Member Function Documentation

std::string Prefs::getData uint8_t  num  )  const [virtual]
 

Retrieve the data at specific field.

Reimplemented from Object.

Definition at line 36 of file prefs.cpp.

References Config::begin().

Here is the call graph for this function:

uint8_t Prefs::getDataCount  )  const [virtual]
 

Retrieve the number of data fields within this object.

Reimplemented from Object.

Definition at line 33 of file prefs.cpp.

References Config::size().

Here is the call graph for this function:

std::string Prefs::getFieldName uint8_t  num  )  const [virtual]
 

Retrieve the data field name.

Reimplemented from Object.

Definition at line 43 of file prefs.cpp.

References Config::begin().

Here is the call graph for this function:

Prefs & Prefs::instance  )  [static]
 

Definition at line 27 of file prefs.cpp.

Referenced by HydraNode::cleanup(), FilesList::createDownload(), SchedBase::exit(), HydraNode::initConfig(), HydraNode::initFiles(), HydraNode::initModules(), HydraNode::onEvent(), FilesList::scanSharedDir(), and SchedBase::SchedBase().

Prefs& Prefs::operator= Prefs  )  [private]
 

Assignment operator forbidden.


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