IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseFormulaAttribute.h
1 // BaseFormulaAttribute.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_BASEFORMULAATTRIBUTE_H__
16 #define __IPSDKIMAGEPROCESSING_BASEFORMULAATTRIBUTE_H__
17 
18 // suppression warning
19 // warning C4251: 'ipsdk::imaproc::BaseFormulaAttribute::_formulaStr' : class 'std::basic_string<_Elem,_Traits,_Alloc>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::BaseFormulaAttribute'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKImageProcessing/Attribute/BaseImageProcessingAttribute.h>
25 
26 namespace ipsdk {
27 namespace imaproc {
28 
31 
33 {
34  // declare serial class
36 
37 // predefined public types
38 public:
40  static const eImageProcessingAttributeType::domain g_imageProcessingAttributeType = eImageProcessingAttributeType::eIPAT_Formula;
41 
43  typedef std::string ValueType;
44 
45 protected:
48 
49 public:
51  virtual ~BaseFormulaAttribute() = 0;
52 
53 // methods
54 public:
56  eImageProcessingAttributeType getImageProcessingAttributeType() const;
57 
59  virtual eFormulaAttributeType getFormulaAttributeType() const = 0;
60 
64  const ValueType& getFormulaStr() const;
65 
67  void initBase(const ValueType& formulaStr);
68 
69 // attributes
70 protected:
73 };
74 
77 
80 {
82 }
83 
86 
87 } // end of namespace imaproc
88 } // end of namespace ipsdk
89 
90 #pragma warning (pop)
91 
92 #endif // __IPSDKIMAGEPROCESSING_BASEFORMULAATTRIBUTE_H__
std::string ValueType
value type for attribute familly
Definition: BaseFormulaAttribute.h:43
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Base class for image processing attributes.
Definition: BaseImageProcessingAttribute.h:28
#define IPSDK_DECLARE_ABSTRACT_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on abstract class
Definition: SerializationHdrMacro.h:97
eImageProcessingAttributeType getImageProcessingAttributeType() const
retrieve image attribute type
Definition: BaseFormulaAttribute.h:79
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
Attribute associated to formula.
Definition: ImageProcessingAttributeTypes.h:59
eImageProcessingAttributeType
Enumerate describing image attributes type.
Definition: ImageProcessingAttributeTypes.h:33
Predefined types for formula attribute management.
eFormulaAttributeType
Enumerate describing formula attribute type.
Definition: FormulaAttributeTypes.h:34
static const eImageProcessingAttributeType::domain g_imageProcessingAttributeType
image processing attribute type
Definition: BaseFormulaAttribute.h:40
ValueType _formulaStr
formula associated to attribute
Definition: BaseFormulaAttribute.h:72
Base class for formula attributes.
Definition: BaseFormulaAttribute.h:32