ICF 3.0.5.47
Technical documentation of ICF Libraries
CTextParam.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_CTextParam_included
7#define iprm_CTextParam_included
8
9
10// ICF includes
11#include <iprm/ITextParam.h>
12
13
14namespace iprm
15{
16
17
21class CTextParam: virtual public ITextParam
22{
23public:
24 // reimplemented (iprm::ITextParam)
25 QString GetText() const override;
26 void SetText(const QString& text) override;
27 bool IsReadOnly() const override;
28
29 // reimplemented (iser::ISerializable)
30 bool Serialize(iser::IArchive& archive) override;
31
32 // reimplemented (istd::IChangeable)
33 int GetSupportedOperations() const override;
34 bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
35 bool IsEqual(const IChangeable& object) const override;
36 std::unique_ptr<istd::IChangeable> CloneMe(istd::IChangeable::CompatibilityMode mode = istd::IChangeable::CM_WITHOUT_REFS) const override;
38
39protected:
40 QString m_text;
41};
42
43
44} // namespace iprm
45
46
47#endif // !iprm_CTextParam_included
48
49
Implementation of the text value over iprm::ITextParam interface.
Definition CTextParam.h:22
int GetSupportedOperations() const override
Get set of flags for supported operations.
bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
void SetText(const QString &text) override
Set the text.
std::unique_ptr< istd::IChangeable > CloneMe(istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override
Make a copy of this object.
bool IsEqual(const IChangeable &object) const override
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
QString GetText() const override
Get the text.
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
bool IsReadOnly() const override
Return true, if the text is readonly.
Interface for a object containing simple text.
Definition ITextParam.h:25
Represent input/output persistence archive.
Definition IArchive.h:33
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