IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseRequestOrigin.h
1 // BaseRequestOrigin.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKCORE_BASEREQUESTORIGIN_H__
16 #define __IPSDKCORE_BASEREQUESTORIGIN_H__
17 
20 #include <IPSDKUtil/Dynamic/BaseDynamicObject.h>
21 
22 namespace ipsdk {
23 namespace core {
24 
27 
29 {
30  // declare a dynamic object
32 
33 public:
37  virtual ~BaseRequestOrigin() = 0;
39 
40 // methods
41 public:
43  bool isInit() const;
44 
46  virtual eRequestOrigin getRequestOrigin() const = 0;
47 
50  bool isLocal() const;
51  bool isRemote() const;
53 
55  void clear();
56 
57 protected:
59  void initBase();
60 
61 // attributes
62 protected:
64  bool _bInit;
65 };
66 
69 
70 inline bool
72 {
73  return _bInit;
74 }
75 
76 inline bool
78 {
80 }
81 
82 inline bool
84 {
86 }
87 
90 
91 } // end of namespace core
92 } // end of namespace ipsdk
93 
94 #endif // __IPSDKCORE_BASEREQUESTORIGIN_H__
Base class for dynamic objects.
Definition: BaseDynamicObject.h:28
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
bool isRemote() const
check for request origin
Definition: BaseRequestOrigin.h:83
virtual eRequestOrigin getRequestOrigin() const =0
retrieve request origin
bool _bInit
object initialization flag
Definition: BaseRequestOrigin.h:64
#define IPSDK_DECLARE_ABSTRACT_DYNAMIC_WITH_COPY(libraryName, className)
macro enabling dynamic properties on abstract class and copy support
Definition: DynamicHdrMacro.h:95
Definition of import/export macro for library.
Predefined types for requests origin management.
bool isInit() const
retrieve object initialization flag
Definition: BaseRequestOrigin.h:71
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
eRequestOrigin
Enumerate describing request origin.
Definition: RequestOriginTypes.h:34
Base class for request origin description.
Definition: BaseRequestOrigin.h:28
bool isLocal() const
check for request origin
Definition: BaseRequestOrigin.h:77
Request issue from remote machine.
Definition: RequestOriginTypes.h:38
Request issue from local machine.
Definition: RequestOriginTypes.h:36