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

#include <properties.h>

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

Public Member Functions

 Property (PropertyDescriptor< std::string > d, std::string const &v)
 
 Property (PropertyDescriptor< std::string > d, std::string const &o, std::string const &c)
 
Property< std::string > * clone () const
 
std::string & operator= (std::string const &v)
 
- Public Member Functions inherited from PBD::PropertyTemplate< std::string >
 PropertyTemplate (PropertyDescriptor< std::string > p, std::string const &v)
 
 PropertyTemplate (PropertyDescriptor< std::string > p, std::string const &o, std::string const &c)
 
 PropertyTemplate (PropertyDescriptor< std::string > p, PropertyTemplate< std::string > const &s)
 
std::string & operator= (std::string const &v)
 
PropertyTemplate< std::string > & operator= (PropertyTemplate< std::string > const &p)
 
std::string & operator+= (std::string const &v)
 
std::string operator- (std::string const other) const
 
bool operator< (std::string const &other) const
 
bool operator> (std::string const &other) const
 
bool operator== (const std::string &other) const
 
bool operator!= (const std::string &other) const
 
 operator std::string const & () const
 
std::string const & val () const
 
std::string & non_const_val ()
 
bool set_value (XMLNode const &node)
 
void get_value (XMLNode &node) const
 
void clear_changes ()
 
bool changed () const
 
void invert ()
 
void get_changes_as_xml (XMLNode *history_node) const
 
void get_changes_as_properties (PropertyList &changes, Command *) const
 
void apply_change (PropertyBase const *p)
 
- Public Member Functions inherited from PBD::PropertyBase
 PropertyBase (PropertyID pid)
 
virtual ~PropertyBase ()
 
virtual void clear_owned_changes ()
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
virtual PropertyBaseclone_from_xml (const XMLNode &) const
 
const gchar * property_name () const
 
PropertyID property_id () const
 
bool operator== (PropertyID pid) const
 

Private Member Functions

std::string to_string (std::string const &v) const
 
std::string from_string (std::string const &s) const
 
 Property (Property< std::string > const &)
 

Additional Inherited Members

- Protected Member Functions inherited from PBD::PropertyTemplate< std::string >
void set (std::string const &v)
 
- Protected Member Functions inherited from PBD::PropertyBase
 PropertyBase (PropertyBase const &b)
 
- Protected Attributes inherited from PBD::PropertyTemplate< std::string >
bool _have_old
 
std::string _current
 
std::string _old
 

Detailed Description

Specialization, for std::string which is common and special (see to_string() and from_string() Using stringstream to read from a std::string is easy to get wrong because of whitespace separators, etc.

Definition at line 303 of file properties.h.

Constructor & Destructor Documentation

◆ Property() [1/3]

PBD::Property< std::string >::Property ( PropertyDescriptor< std::string >  d,
std::string const &  v 
)
inline

Definition at line 306 of file properties.h.

◆ Property() [2/3]

PBD::Property< std::string >::Property ( PropertyDescriptor< std::string >  d,
std::string const &  o,
std::string const &  c 
)
inline

Definition at line 310 of file properties.h.

◆ Property() [3/3]

PBD::Property< std::string >::Property ( Property< std::string > const &  )
private

Member Function Documentation

◆ clone()

Property<std::string>* PBD::Property< std::string >::clone ( ) const
inlinevirtual

Implements PBD::PropertyBase.

Definition at line 314 of file properties.h.

◆ from_string()

std::string PBD::Property< std::string >::from_string ( std::string const &  s) const
inlineprivatevirtual

Implements PBD::PropertyTemplate< std::string >.

Definition at line 328 of file properties.h.

◆ operator=()

std::string& PBD::Property< std::string >::operator= ( std::string const &  v)
inline

Definition at line 318 of file properties.h.

◆ to_string()

std::string PBD::Property< std::string >::to_string ( std::string const &  v) const
inlineprivatevirtual

Implements PBD::PropertyTemplate< std::string >.

Definition at line 324 of file properties.h.


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