ACF $AcfVersion:0$
CTextParam.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// ACF includes
6#include <iprm/ITextParam.h>
7
8
9namespace iprm
10{
11
12
16class CTextParam: virtual public ITextParam
17{
18public:
19 // reimplemented (iprm::ITextParam)
20 virtual QString GetText() const override;
21 virtual void SetText(const QString& text) override;
22 virtual bool IsReadOnly() const override;
23
24 // reimplemented (iser::ISerializable)
25 virtual bool Serialize(iser::IArchive& archive) override;
26
27 // reimplemented (istd::IChangeable)
28 virtual int GetSupportedOperations() const override;
29 virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
30 virtual bool IsEqual(const IChangeable& object) const override;
32 virtual bool ResetData(CompatibilityMode mode = CM_WITHOUT_REFS) override;
33
34protected:
35 QString m_text;
36};
37
38
39} // namespace iprm
40
41
42
43
Implementation of the text value over iprm::ITextParam interface.
Definition CTextParam.h:17
virtual void SetText(const QString &text) override
Set the text value.
virtual istd::TUniqueInterfacePtr< istd::IChangeable > CloneMe(istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override
Make a copy of this object.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual int GetSupportedOperations() const override
Get set of flags for supported operations.
virtual bool IsReadOnly() const override
Return true if the text is read-only.
virtual bool IsEqual(const IChangeable &object) const override
virtual QString GetText() const override
Get the text value.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
Interface for an object containing simple text.
Definition ITextParam.h:76
Represents an input/output persistence archive for object serialization.
Definition IArchive.h:164
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Unique ownership smart pointer for interface types.
Contains interfaces and implementations of flexible parameter concept.