10#include <QtCore/QByteArray>
31template <
typename Value>
49 virtual const Value&
GetValue()
const;
50 virtual void SetValue(
const Value& value);
68template <
typename Value>
75template <
typename Value>
83template <
typename Value>
86 m_value(attribute.GetValue())
91template <
typename Value>
98template <
typename Value>
101 if (m_value != value){
111template <
typename Value>
114 return GetTypeName();
120template <
typename Value>
133template <
typename Value>
Template implementation of single component attribute.
virtual QByteArray GetFactoryId() const
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
iser::TCopySerializedWrap< iser::IObject > BaseClass
virtual const Value & GetValue() const
static QByteArray GetTypeName()
virtual void SetValue(const Value &value)
Process tag used to group data in archive stream.
@ Leaf
Leaf tag, it can contain only one primitive element.
Represent input/output persistence archive.
virtual bool ProcessLeaf(const CArchiveTag &tag, bool &value)=0
Process primitive type.
virtual bool IsChanging() const =0
Check if this archive processing change the object state.
Help class which provides the automatic update mechanism of the model.
const QByteArray & GetName() const
Get undecorated and platform undependent class name.
This namespace containes implementations of attributes concept.
TAttribute< int > CIntegerAttribute
TAttribute< QString > CStringAttribute
TAttribute< QByteArray > CIdAttribute
TAttribute< bool > CBooleanAttribute
TAttribute< double > CRealAttribute