IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseInputValueAttribute.h
1 // BaseInputValueAttribute.h:
3 // --------------------------
4 //
14 
15 #ifndef __IPSDKBASEPROCESSING_BASEINPUTVALUEATTRIBUTE_H__
16 #define __IPSDKBASEPROCESSING_BASEINPUTVALUEATTRIBUTE_H__
17 
18 #include <IPSDKBaseProcessing/Attribute/Value/BaseValueAttribute.h>
19 
20 namespace ipsdk {
21 namespace processor {
22 
25 
26 template <typename T>
28 {
29  // declare serial class
31 
32  // declare input data
34 
35 // constructor and destructor
36 protected:
39 public:
41  virtual ~BaseInputValueAttribute() = 0;
42 
43 // methods
44 public:
46  void init(const T& value)
47  {
48  this->initBase(value);
49  }
50 
54  const T& getValue() const
55  {
56  return this->accessValue();
57  }
58 
64  T getStorage() const
65  {
66  return this->accessValue();
67  }
68 
69 // attributes
70 protected:
71 
72 };
73 
76 
77 } // end of namespace processor
78 } // end of namespace ipsdk
79 
80 #endif // __IPSDKBASEPROCESSING_BASEINPUTVALUEATTRIBUTE_H__
T getStorage() const
access to storage associated to attribute
Definition: BaseInputValueAttribute.h:64
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
#define IPSDKBASEPROCESSING_API
Import/Export macro for library IPSDKBaseProcessing.
Definition: IPSDKBaseProcessingExports.h:27
#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
Base class for input value attributes.
Definition: BaseInputValueAttribute.h:27
Base class for value attributes.
Definition: BaseValueAttribute.h:33
void init(const T &value)
initialize value associated to attribute
Definition: BaseInputValueAttribute.h:46
const T & getValue() const
get value associated to attribute
Definition: BaseInputValueAttribute.h:54