Ardour  9.0-pre0-350-gf17a656217
PBD::ConfigVariable< T > Class Template Reference

#include <configuration_variable.h>

Inheritance diagram for PBD::ConfigVariable< T >:
[legend]

Public Member Functions

 ConfigVariable (std::string str)
 
 ConfigVariable (std::string str, T val)
 
get () const
 
std::string get_as_string () const
 
virtual bool set (T val)
 
virtual void set_from_string (std::string const &s)
 
- Public Member Functions inherited from PBD::ConfigVariableBase
 ConfigVariableBase (std::string str)
 
virtual ~ConfigVariableBase ()
 
std::string name () const
 
void add_to_node (XMLNode &) const
 
bool set_from_node (XMLNode const &)
 

Protected Member Functions

virtual T get_for_save ()
 
- Protected Member Functions inherited from PBD::ConfigVariableBase
void notify ()
 
void miss ()
 

Protected Attributes

value
 
- Protected Attributes inherited from PBD::ConfigVariableBase
std::string _name
 

Detailed Description

template<class T>
class PBD::ConfigVariable< T >

Definition at line 50 of file configuration_variable.h.

Constructor & Destructor Documentation

◆ ConfigVariable() [1/2]

template<class T >
PBD::ConfigVariable< T >::ConfigVariable ( std::string  str)
inline

Definition at line 54 of file configuration_variable.h.

◆ ConfigVariable() [2/2]

template<class T >
PBD::ConfigVariable< T >::ConfigVariable ( std::string  str,
val 
)
inline

Definition at line 55 of file configuration_variable.h.

Member Function Documentation

◆ get()

template<class T >
T PBD::ConfigVariable< T >::get ( ) const
inline

Definition at line 57 of file configuration_variable.h.

◆ get_as_string()

template<class T >
std::string PBD::ConfigVariable< T >::get_as_string ( ) const
inlinevirtual

Implements PBD::ConfigVariableBase.

Definition at line 61 of file configuration_variable.h.

◆ get_for_save()

template<class T >
virtual T PBD::ConfigVariable< T >::get_for_save ( )
inlineprotectedvirtual

Reimplemented in PBD::ConfigVariableWithMutation< T >.

Definition at line 80 of file configuration_variable.h.

◆ set()

template<class T >
virtual bool PBD::ConfigVariable< T >::set ( val)
inlinevirtual

Reimplemented in PBD::ConfigVariableWithMutation< T >.

Definition at line 65 of file configuration_variable.h.

◆ set_from_string()

template<class T >
virtual void PBD::ConfigVariable< T >::set_from_string ( std::string const &  s)
inlinevirtual

Implements PBD::ConfigVariableBase.

Reimplemented in PBD::ConfigVariableWithMutation< T >.

Definition at line 75 of file configuration_variable.h.

Member Data Documentation

◆ value

template<class T >
T PBD::ConfigVariable< T >::value
protected

Definition at line 81 of file configuration_variable.h.


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