105 operator T
const &()
const {
219 return os << s.
val ();
247 XMLNodeList::const_iterator i = children.begin();
248 while (i != children.end() && (*i)->name() != this->property_name()) {
252 if (i == children.end()) {
255 XMLProperty const * from = (*i)->property (
"from");
293 return PBD::string_to<T>(s);
374 typedef std::shared_ptr<T>
Ptr;
401 if (children.size() != 1) {
462 operator bool ()
const {
EnumProperty(EnumProperty const &)
T & operator=(T const &v)
EnumProperty(PropertyDescriptor< T > q, T const &v)
std::string to_string(T const &v) const
T from_string(std::string const &s) const
virtual PropertyBase * clone() const =0
const gchar * property_name() const
PropertyID property_id() const
bool add(PropertyBase *prop)
bool operator<(T const &other) const
PropertyTemplate(PropertyDescriptor< T > p, PropertyTemplate< T > const &s)
PropertyTemplate(PropertyDescriptor< T > p, T const &v)
PropertyTemplate(PropertyDescriptor< T > p, T const &o, T const &c)
bool set_value(XMLNode const &node)
T operator-(T const other) const
virtual T from_string(std::string const &s) const =0
void get_value(XMLNode &node) const
bool operator>(T const &other) const
bool operator!=(const T &other) const
virtual std::string to_string(T const &v) const =0
T & operator+=(T const &v)
PropertyTemplate(PropertyTemplate< T > const &)
void get_changes_as_properties(PropertyList &changes, Command *) const
bool operator==(const T &other) const
void apply_change(PropertyBase const *p)
T & operator=(T const &v)
void get_changes_as_xml(XMLNode *history_node) const
std::string to_string(std::string const &v) const
Property(Property< std::string > const &)
Property(PropertyDescriptor< std::string > d, std::string const &v)
Property< std::string > * clone() const
Property(PropertyDescriptor< std::string > d, std::string const &o, std::string const &c)
std::string from_string(std::string const &s) const
Property< T > * clone_from_xml(const XMLNode &node) const
Property< T > * clone() const
Property(PropertyDescriptor< T > q, T const &o, T const &c)
friend class PropertyFactory
Property< T > & operator=(Property< T > const &v)
virtual T from_string(std::string const &s) const
Property(Property< T > const &)
virtual std::string to_string(T const &v) const
T & operator=(T const &v)
Property(PropertyDescriptor< T > q, T const &v)
Property(PropertyDescriptor< T > q, Property< T > const &v)
void get_value(XMLNode &node) const
void get_changes_as_properties(PropertyList &changes, Command *) const
SharedStatefulProperty(PropertyID d, Ptr o, Ptr c)
SharedStatefulProperty(PropertyID d, Ptr p)
SharedStatefulProperty(SharedStatefulProperty< T > const &)
SharedStatefulProperty< T > & operator=(SharedStatefulProperty< T > const &)
void apply_change(PropertyBase const *p)
bool set_value(XMLNode const &node)
void get_changes_as_xml(XMLNode *history_node) const
static int current_state_version
const XMLNodeList & children(const std::string &str=std::string()) const
bool set_property(const char *name, const std::string &value)
XMLProperty const * property(const char *) const
XMLNode * child(const char *) const
void add_child_nocopy(XMLNode &)
XMLNode * add_child(const char *)
const std::string & value() const
#define string_2_enum(str, e)
bool to_string(ARDOUR::AnyTime const &at, std::string &str)
std::ostream & operator<<(std::ostream &os, PropertyTemplate< T > const &s)
std::vector< XMLNode * > XMLNodeList