ICF 3.1.1.10
Technical documentation of ICF Libraries
CIdParam.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iprm_CIdParam_included
7#define iprm_CIdParam_included
8
9
10// ICF includes
11#include <iprm/IIdParam.h>
12
13
14namespace iprm
15{
16
17
21class CIdParam: virtual public IIdParam
22{
23public:
24 // reimplemented (iprm::INameParam)
25 QByteArray GetId() const override;
26 void SetId(const QByteArray& id) override;
27
28 // reimplemented (iser::ISerializable)
29 bool Serialize(iser::IArchive& archive) override;
30
31 // reimplemented (istd::IChangeable)
32 int GetSupportedOperations() const override;
33 bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
34 bool IsEqual(const IChangeable& object) const override;
35 std::unique_ptr<istd::IChangeable> CloneMe(istd::IChangeable::CompatibilityMode mode = istd::IChangeable::CM_WITHOUT_REFS) const override;
37
38protected:
39 QByteArray m_id;
40};
41
42
43} // namespace iprm
44
45
46#endif // !iprm_CIdParam_included
47
48
Implementation of a named object over iprm::INameParam interface.
Definition CIdParam.h:22
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
int GetSupportedOperations() const override
Get set of flags for supported operations.
QByteArray m_id
Definition CIdParam.h:39
bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
void SetId(const QByteArray &id) override
Set the object-ID.
QByteArray GetId() const override
Get the object-ID.
bool IsEqual(const IChangeable &object) const override
std::unique_ptr< istd::IChangeable > CloneMe(istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override
Make a copy of this object.
Interface for an ID-parameter.
Definition IIdParam.h:25
Represent input/output persistence archive.
Definition IArchive.h:34
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains interfaces and implementations of flexible parameter concept.

© Witold Gantzke and Kirill Lepskiy