ardour
Public Member Functions | Private Member Functions | List of all members
PBD::Property< std::string > Class Template Reference

#include <properties.h>

Inheritance diagram for PBD::Property< std::string >:
PBD::PropertyTemplate< std::string > PBD::PropertyBase

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::stringconst &v)
 
 PropertyTemplate (PropertyDescriptor< std::string > p, std::stringconst &o, std::stringconst &c)
 
 PropertyTemplate (PropertyDescriptor< std::string > p, PropertyTemplate< std::string > const &s)
 
std::string & operator= (std::stringconst &v)
 
PropertyTemplate< std::string > & operator= (PropertyTemplate< std::string > const &p)
 
std::string & operator+= (std::stringconst &v)
 
bool operator== (const std::string &other) const
 
bool operator!= (const std::string &other) const
 
 operator std::stringconst & () const
 
std::stringconst & val () const
 
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_changes (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< 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::stringconst &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

template<>
class PBD::Property< std::string >

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 288 of file properties.h.

Constructor & Destructor Documentation

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

Definition at line 291 of file properties.h.

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

Definition at line 295 of file properties.h.

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

Member Function Documentation

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

Implements PBD::PropertyBase.

Definition at line 299 of file properties.h.

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

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

Definition at line 313 of file properties.h.

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

Definition at line 303 of file properties.h.

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

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

Definition at line 309 of file properties.h.


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