29 I_REGISTER_INTERFACE(
IAb);
34 I_ASSIGN(m_defaultAValueAttrPtr,
"DefaultAValue",
"Default value of A",
false, 50);
35 I_ASSIGN(m_defaultBValueAttrPtr,
"DefaultBValue",
"Default value of B",
false,
"SomeText");
42 virtual int GetA()
const override;
43 virtual bool SetA(
int a)
override;
44 virtual QByteArray
GetB()
const override;
45 virtual void SetB(
const QByteArray& b)
override;
78 I_ATTR(
int, m_defaultAValueAttrPtr);
83 I_ATTR(QByteArray, m_defaultBValueAttrPtr);
Implementation of AB-component.
virtual void OnComponentCreated() override
virtual const IAConstraints & GetAConstraints() const override
Get constraints of A.
virtual const istd::CRange & GetARange() const override
Get the possible value range for A.
virtual void SetB(const QByteArray &b) override
Set the value of B.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual QByteArray GetB() const override
Get the value of B.
virtual int GetA() const override
Get the values of A.
virtual bool SetA(int a) override
Set the value of A.
icomp::CComponentBase BaseClass
Interface for contraints of A.
Base class for component implementation.
Represents an input/output persistence archive for object serialization.
Common class for all classes which objects can be archived or restored from archive.