|
WSF
|
#include <AttributeSet.hpp>
Public Member Functions | |
| AttributeSet (const std::string &aName) | |
| AttributeSet (const AttributeSet &aSrc) | |
| Copy the sub-tree of attributes, leaving owner null. | |
| ~AttributeSet () | |
| void | Apply (const AttributeSet &aOtherSet) |
| void | WriteXML (const std::string &aName, UtQtXmlWriter &aWriter) const |
| void | ReadXML (UtQtXmlElementReader &aReader) |
| bool | ReadSingleXML (UtQtXmlElementReader &aReader) |
| Read the top-level attribute set from a single entry. | |
| std::string | ToString () |
| void | SetValue (const std::string &aName, const UtVariant &aValue) |
| bool | GetValue (const std::string &aName, UtVariant &aValue) const |
| UtVariant | GetValue (const std::string &aName) const |
| bool | GetBool (const std::string &aName, bool aDefautlValue) const |
| double | GetDouble (const std::string &aName, double aDefaultValue) const |
| int | GetInt (const std::string &aName, int aDefaultValue) const |
| std::string | GetString (const std::string &aName, const std::string &aDefaultValue) const |
| AttributeSet & | Child (const std::string &aChildName) |
| AttributeSet * | FindChild (const std::string &aChildName) |
| bool | RenameChild (const std::string &aCurrentName, const std::string &aNewName) |
| bool | Rename (const std::string &aNewName) |
| bool | RemoveChild (const std::string &aChildName) |
| bool | HasAttribute (const std::string &aName) const |
| bool | HasChild (const std::string &aChildName) const |
| void | NotifyOwnersOfChange () |
| AttributeSet * | GetParent () |
| const std::string & | GetAttributeName () const |
Friends | |
| class | AttributeOwner |
A set of attributes Attribute values are stored as a UtVariant Each attribute has a name Contains any number of children with unique names The attribute set may be owned by a AttributeOwner
|
explicit |
Referenced by Apply(), AttributeOwner, AttributeSet(), Child(), GetParent(), and RenameChild().
| wizard::AttributeSet::AttributeSet | ( | const AttributeSet & | aSrc | ) |
Copy the sub-tree of attributes, leaving owner null.
References AttributeSet().
| wizard::AttributeSet::~AttributeSet | ( | ) |
| void wizard::AttributeSet::Apply | ( | const AttributeSet & | aOtherSet | ) |
References AttributeSet(), and Child().
Referenced by AttributeOwner.
| wizard::AttributeSet & wizard::AttributeSet::Child | ( | const std::string & | aChildName | ) |
References AttributeSet().
Referenced by Apply(), AttributeOwner, wizard::Project::GetOptions(), and ReadXML().
| wizard::AttributeSet * wizard::AttributeSet::FindChild | ( | const std::string & | aChildName | ) |
Referenced by AttributeOwner, wizard::Project::FindOptions(), and RenameChild().
|
inline |
| bool wizard::AttributeSet::GetBool | ( | const std::string & | aName, |
| bool | aDefautlValue ) const |
Referenced by AttributeOwner.
| double wizard::AttributeSet::GetDouble | ( | const std::string & | aName, |
| double | aDefaultValue ) const |
Referenced by AttributeOwner.
| int wizard::AttributeSet::GetInt | ( | const std::string & | aName, |
| int | aDefaultValue ) const |
Referenced by AttributeOwner.
|
inline |
References AttributeSet().
| std::string wizard::AttributeSet::GetString | ( | const std::string & | aName, |
| const std::string & | aDefaultValue ) const |
Referenced by AttributeOwner.
| UtVariant wizard::AttributeSet::GetValue | ( | const std::string & | aName | ) | const |
| bool wizard::AttributeSet::GetValue | ( | const std::string & | aName, |
| UtVariant & | aValue ) const |
Referenced by AttributeOwner.
| bool wizard::AttributeSet::HasAttribute | ( | const std::string & | aName | ) | const |
Referenced by AttributeOwner.
| bool wizard::AttributeSet::HasChild | ( | const std::string & | aChildName | ) | const |
Referenced by AttributeOwner.
| void wizard::AttributeSet::NotifyOwnersOfChange | ( | ) |
Referenced by AttributeOwner.
| bool wizard::AttributeSet::ReadSingleXML | ( | UtQtXmlElementReader & | aReader | ) |
Read the top-level attribute set from a single entry.
References ReadXML().
Referenced by AttributeOwner.
| void wizard::AttributeSet::ReadXML | ( | UtQtXmlElementReader & | aReader | ) |
References Child(), ReadVariant(), and SetValue().
Referenced by AttributeOwner, and ReadSingleXML().
| bool wizard::AttributeSet::RemoveChild | ( | const std::string & | aChildName | ) |
Referenced by AttributeOwner.
| bool wizard::AttributeSet::Rename | ( | const std::string & | aNewName | ) |
Referenced by AttributeOwner, and wizard::Project::HandleProxyNodeMoved().
| bool wizard::AttributeSet::RenameChild | ( | const std::string & | aCurrentName, |
| const std::string & | aNewName ) |
References AttributeSet(), and FindChild().
Referenced by AttributeOwner.
| void wizard::AttributeSet::SetValue | ( | const std::string & | aName, |
| const UtVariant & | aValue ) |
Referenced by AttributeOwner, and ReadXML().
| std::string wizard::AttributeSet::ToString | ( | ) |
References WriteXML().
Referenced by AttributeOwner.
| void wizard::AttributeSet::WriteXML | ( | const std::string & | aName, |
| UtQtXmlWriter & | aWriter ) const |
References WriteVariant().
Referenced by AttributeOwner, and ToString().
|
friend |
References Apply(), AttributeOwner, AttributeSet(), Child(), FindChild(), GetBool(), GetDouble(), GetInt(), GetString(), GetValue(), HasAttribute(), HasChild(), NotifyOwnersOfChange(), ReadSingleXML(), ReadXML(), RemoveChild(), Rename(), RenameChild(), SetValue(), ToString(), and WriteXML().
Referenced by AttributeOwner.