ACF $AcfVersion:0$
IAb.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QByteArray>
7
8// ACF includes
10
11
12class IAConstraints;
13
14
18class IAb: virtual public iser::ISerializable
19{
20public:
25 {
29 CF_A_CHANGED = 0xba3530, // some unique random value
30
35 };
36
41 virtual const IAConstraints& GetAConstraints() const = 0;
42
46 virtual int GetA() const = 0;
47
51 virtual bool SetA(int a) = 0;
52
56 virtual QByteArray GetB() const = 0;
57
61 virtual void SetB(const QByteArray& b) = 0;
62};
63
64
65
66
Interface for contraints of A.
Interface for AB-object.
Definition IAb.h:19
ChangeFlags
Flags for changes indentification.
Definition IAb.h:25
@ CF_A_CHANGED
State of A was changed.
Definition IAb.h:29
@ CF_B_CHANGED
State of B was changed.
Definition IAb.h:34
virtual int GetA() const =0
Get the values of A.
virtual QByteArray GetB() const =0
Get the value of B.
virtual bool SetA(int a)=0
Set the value of A.
virtual void SetB(const QByteArray &b)=0
Set the value of B.
virtual const IAConstraints & GetAConstraints() const =0
Get constraints of A.
Common class for all classes which objects can be archived or restored from archive.