libpsynth 0.2.1
Public Member Functions
psynth::base::conf_backend Class Reference

A backend for a config system. More...

#include <config.hpp>

Inheritance diagram for psynth::base::conf_backend:
Inheritance graph
[legend]
Collaboration diagram for psynth::base::conf_backend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~conf_backend ()
 Virtual destructor.
virtual void attach (conf_node &node)=0
 This is called when the backend has been attached to a node.
virtual void datach (conf_node &node)=0
 This is called when the backend has been detached from a node.
virtual void save (conf_node &node)=0
 Permanently store the data of the config.
virtual void load (conf_node &node)=0
 Load the data -and the hierarchy- in the phisical medium.
virtual void def_load (conf_node &node)=0
 Load the data -and the hierarchy- in the phisical medim, but using def functions instead of so the old values al preserved if the user has already set them.

Detailed Description

A backend for a config system.

It implements the actual phisical storing of the data.


Constructor & Destructor Documentation

virtual psynth::base::conf_backend::~conf_backend ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual void psynth::base::conf_backend::attach ( conf_node node) [pure virtual]

This is called when the backend has been attached to a node.

This allows the backend to start listening to its events in case it provides live update.

Parameters:
nodeThe node to which it has been attached.

Implemented in psynth::base::conf_backend_xml.

virtual void psynth::base::conf_backend::datach ( conf_node node) [pure virtual]

This is called when the backend has been detached from a node.

This allows the backend to stop listening to its events in case it provides live update.

Parameters:
nodeThe node to which it has been attached.

Implemented in psynth::base::conf_backend_xml.

virtual void psynth::base::conf_backend::def_load ( conf_node node) [pure virtual]

Load the data -and the hierarchy- in the phisical medim, but using def functions instead of so the old values al preserved if the user has already set them.

Implemented in psynth::base::conf_backend_xml.

virtual void psynth::base::conf_backend::load ( conf_node node) [pure virtual]

Load the data -and the hierarchy- in the phisical medium.

Parameters:
nodeWhere to load the data.

Implemented in psynth::base::conf_backend_xml.

virtual void psynth::base::conf_backend::save ( conf_node node) [pure virtual]

Permanently store the data of the config.

Parameters:
nodeThe config to store.

Implemented in psynth::base::conf_backend_xml.


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