CNameParam.h
Go to the documentation of this file.
1 #ifndef iprm_CNameParam_included
2 #define iprm_CNameParam_included
3 
4 
5 // ACF includes
6 #include <iprm/INameParam.h>
7 
8 
9 namespace iprm
10 {
11 
12 
16 class CNameParam: virtual public INameParam
17 {
18 public:
19  // reimplemented (iprm::INameParam)
20  virtual const QString& GetName() const;
21  virtual void SetName(const QString& name);
22  virtual bool IsNameFixed() const;
23 
24  // reimplemented (iser::ISerializable)
25  virtual bool Serialize(iser::IArchive& archive);
26 
27  // reimplemented (istd::IChangeable)
28  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
30 
31 protected:
32  QString m_name;
33 };
34 
35 
36 } // namespace iprm
37 
38 
39 #endif // !iprm_CNameParam_included
40 
41 
External references are simple ignored.
Definition: IChangeable.h:197
CompatibilityMode
Control how relationship betweeen objects are interpreted.
Definition: IChangeable.h:186
Interface for a object containing simple text.
Definition: INameParam.h:20
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Implementation of a named object over iprm::INameParam interface.
Definition: CNameParam.h:16
virtual const QString & GetName() const
Get the object name.
virtual bool IsNameFixed() const
Return true, if the name setting is enabled.
Represent input/output persistence archive.
Definition: IArchive.h:30
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual istd::IChangeable * CloneMe(istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const
Make a copy of this object.
QString m_name
Definition: CNameParam.h:32
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
virtual void SetName(const QString &name)
Set the object name.

© 2007-2017 Witold Gantzke and Kirill Lepskiy