Ardour  9.0-pre0-582-g084a23a80d
PBD::ConfigVariable< std::string > Class Reference

#include <configuration_variable.h>

Inheritance diagram for PBD::ConfigVariable< std::string >:
[legend]

Public Member Functions

 ConfigVariable (std::string str)
 
 ConfigVariable (std::string str, std::string val)
 
std::string get () const
 
std::string get_as_string () const
 
virtual bool set (std::string 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 std::string get_for_save ()
 
- Protected Member Functions inherited from PBD::ConfigVariableBase
void notify ()
 
void miss ()
 

Protected Attributes

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

Detailed Description

Specialisation of ConfigVariable for std::string to cope with whitespace properly

Definition at line 86 of file configuration_variable.h.

Constructor & Destructor Documentation

◆ ConfigVariable() [1/2]

PBD::ConfigVariable< std::string >::ConfigVariable ( std::string  str)
inline

Definition at line 90 of file configuration_variable.h.

◆ ConfigVariable() [2/2]

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

Definition at line 91 of file configuration_variable.h.

Member Function Documentation

◆ get()

std::string PBD::ConfigVariable< std::string >::get ( ) const
inline

Definition at line 93 of file configuration_variable.h.

◆ get_as_string()

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

Implements PBD::ConfigVariableBase.

Definition at line 97 of file configuration_variable.h.

◆ get_for_save()

virtual std::string PBD::ConfigVariable< std::string >::get_for_save ( )
inlineprotectedvirtual

Reimplemented in PBD::ConfigVariableWithMutation< std::string >.

Definition at line 116 of file configuration_variable.h.

◆ set()

virtual bool PBD::ConfigVariable< std::string >::set ( std::string  val)
inlinevirtual

Reimplemented in PBD::ConfigVariableWithMutation< std::string >.

Definition at line 101 of file configuration_variable.h.

◆ set_from_string()

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

Member Data Documentation

◆ value

std::string PBD::ConfigVariable< std::string >::value
protected

Definition at line 117 of file configuration_variable.h.


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