CNumericAttributeMetaInfo.h
Go to the documentation of this file.
1 #ifndef iattr_CNumericAttributeMetaInfo_included
2 #define iattr_CNumericAttributeMetaInfo_included
3 
4 
5 // ACF includes
6 #include <istd/TOptDelPtr.h>
7 
8 // ACF-Solutions includes
11 
12 
13 namespace iattr
14 {
15 
16 
21  public CAttributeMetaInfo,
22  virtual public INumericAttributeMetaInfo
23 {
24 public:
26 
27  explicit CNumericAttributeMetaInfo(const QByteArray& typeId = "");
28 
33  bool SetMinAttributeValue(const iser::IObject* valuePtr, bool releaseFlag);
38  bool SetMaxAttributeValue(const iser::IObject* valuePtr, bool releaseFlag);
39 
40  // reimplemented (iattr::IEnumAttributeMetaInfo)
41  virtual bool GetMinimalValue(iser::IObject& result) const;
42  virtual bool GetMaximalValue(iser::IObject& result) const;
43 
44 private:
45  istd::TOptDelPtr<const iser::IObject> m_minAttributePtr;
46  istd::TOptDelPtr<const iser::IObject> m_maxAttributePtr;
47 };
48 
49 
50 } // namespace iattr
51 
52 
53 #endif // !iattr_CNumericAttributeMetaInfo_included
54 
55 
bool SetMaxAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set maximal value of attribute.
CNumericAttributeMetaInfo(const QByteArray &typeId="")
virtual bool GetMinimalValue(iser::IObject &result) const
Get minimal allowed value for some attribute.
Common interface for factorisable model objects.
Definition: IObject.h:19
bool SetMinAttributeValue(const iser::IObject *valuePtr, bool releaseFlag)
Set minimal value of attribute.
virtual bool GetMaximalValue(iser::IObject &result) const
Get maximal allowed value for some attribute.
Represents constraints of properties allowing values from enumerated set.
Represents constraints of properties allowing values from enumerated set.
Represents constraints of properties allowing values from enumerated set.

© 2007-2017 Witold Gantzke and Kirill Lepskiy