IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseOutputValueAttribute.h
1 // BaseOutputValueAttribute.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKBASEPROCESSING_BASEOUTPUTVALUEATTRIBUTE_H__
16 #define __IPSDKBASEPROCESSING_BASEOUTPUTVALUEATTRIBUTE_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 output data
34 
35 // constructor and destructor
36 protected:
39 public:
41  virtual ~BaseOutputValueAttribute() = 0;
42 
43 // methods
44 public:
46  void init(const T& value)
47  {
48  this->initBase(value);
49  }
50 
53  const T& getValue() const
54  {
55  return this->accessValue();
56  }
57 
62  {
63  return this->accessValue();
64  }
65 
67  void setValue(const T& value)
68  {
69  this->accessValue() = value;
70  }
71 
72 // attributes
73 protected:
74 
75 };
76 
79 
80 } // end of namespace processor
81 } // end of namespace ipsdk
82 
83 #endif // __IPSDKBASEPROCESSING_BASEOUTPUTVALUEATTRIBUTE_H__
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_OUTPUT_DATA()
macro allowing to declare an output data
Definition: DataStatusHdrMacros.h:113
Base class for value attributes.
Definition: BaseValueAttribute.h:33
void init(const T &value)
initialize value associated to attribute
Definition: BaseOutputValueAttribute.h:46
const T & getValue() const
get value associated to attribute
Definition: BaseOutputValueAttribute.h:53
void setValue(const T &value)
set value associated to attribute
Definition: BaseOutputValueAttribute.h:67
Base class for output value attributes.
Definition: BaseOutputValueAttribute.h:27
T getStorage()
access to storage associated to attribute
Definition: BaseOutputValueAttribute.h:61