IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseIPEnumAttribute.h
1 // BaseIPEnumAttribute.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_BASEIPENUMATTRIBUTE_H__
16 #define __IPSDKIMAGEPROCESSING_BASEIPENUMATTRIBUTE_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::imaproc::attr::InConvertImageBufferType::_enumValue' : class 'ipsdk::image::eImageBufferType' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::attr::InConvertImageBufferType'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
24 #include <IPSDKImageProcessing/Attribute/BaseImageProcessingAttribute.h>
26 #include <boost/thread/mutex.hpp>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 
33 
35 {
36  // declare serial class
38 
39  // declare input data
41 
42 // predefined public types
43 public:
45  static const eImageProcessingAttributeType::domain g_imageProcessingAttributeType = eImageProcessingAttributeType::eIPAT_IPEnum;
46 
47 protected:
50 
51 public:
53  virtual ~BaseIPEnumAttribute() = 0;
54 
55 // methods
56 public:
58  eImageProcessingAttributeType getImageProcessingAttributeType() const;
59 
60 protected:
62  void initBase(ipUInt32 enumValue);
63 
66  ipUInt32 accessEnumValue() const;
67 
69  virtual bool checkEnumValue(ipUInt32 enumValue) const = 0;
70 
72  static boost::mutex& getMutex();
73 
74 // attributes
75 protected:
78 };
79 
82 
85 {
87 }
88 
91 
92 } // end of namespace imaproc
93 } // end of namespace ipsdk
94 
95 #pragma warning (pop)
96 
97 #endif // __IPSDKIMAGEPROCESSING_BASEIPENUMATTRIBUTE_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Base class for image processing attributes.
Definition: BaseImageProcessingAttribute.h:28
static const eImageProcessingAttributeType::domain g_imageProcessingAttributeType
image processing attribute type
Definition: BaseIPEnumAttribute.h:45
#define IPSDK_DECLARE_ABSTRACT_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on abstract class
Definition: SerializationHdrMacro.h:97
#define IPSDK_DECLARE_INPUT_DATA()
macro allowing to declare an input data
Definition: DataStatusHdrMacros.h:106
Header part of macros set for class serialization.
Definition of import/export macro for library.
eImageProcessingAttributeType getImageProcessingAttributeType() const
retrieve image attribute type
Definition: BaseIPEnumAttribute.h:84
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
eImageProcessingAttributeType
Enumerate describing image attributes type.
Definition: ImageProcessingAttributeTypes.h:33
Attribute associated to an enumerate value.
Definition: ImageProcessingAttributeTypes.h:35
Base class for attributes associated to image processing enumerates.
Definition: BaseIPEnumAttribute.h:34
ipUInt32 _enumValue
integer value associated to enumerate
Definition: BaseIPEnumAttribute.h:77
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53