IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
UpdateRemoteAction.h
1 // UpdateRemoteAction.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKCORE_UPDATEREMOTEACTION_H__
16 #define __IPSDKCORE_UPDATEREMOTEACTION_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::core::UpdateRemoteAction::_pAction' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'ipsdk::core::UpdateRemoteAction'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKCore/Processing/Action/BaseSimpleAction.h>
25 
26 namespace ipsdk {
27 namespace core {
28 
31 
33 {
34  // declare action class
36 
37 protected:
40 
41 public:
44 
45 // methods
46 public:
49  BoolResult init(const Guid& providerGuid,
50  const Guid& requestGuid,
51  const ActionPtr& pAction);
52 
55  BoolResult initFailure(const Guid& providerGuid,
56  const Guid& requestGuid,
57  const std::string& msgError);
58 
61  BoolResult initNoMore(const Guid& providerGuid,
62  const Guid& requestGuid);
63 
66  const Guid& getProviderGuid() const;
67 
70  const Guid& getRequestGuid() const;
71 
72 protected:
75  ExecResultDerived runDerived();
76 
81  BoolResult globalCleanDerived();
82 
83 // attributes
84 protected:
87 
90 
93 
95  std::string _msgError;
96 
99 };
100 
103 
104 } // end of namespace core
105 } // end of namespace ipsdk
106 
107 #pragma warning (pop)
108 
109 #endif // __IPSDKCORE_UPDATEREMOTEACTION_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Guid _requestGuid
request guid has known on local machine
Definition: UpdateRemoteAction.h:89
std::string _msgError
error message in case of failure
Definition: UpdateRemoteAction.h:95
boost::shared_ptr< BaseAction > ActionPtr
shared pointer to BaseAction
Definition: ActionTypes.h:54
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
Class encapsulating an auto initialized uuid.
Definition: Guid.h:27
Predefined types for action provider management.
Action allowing to update an action on a distant machine.
Definition: UpdateRemoteAction.h:32
eQueryActionResult
Enumerate describing result of an action query.
Definition: ActionProviderTypes.h:41
Base class for library simple actions.
Definition: BaseSimpleAction.h:26
#define IPSDK_DECLARE_ACTION(libraryName, className)
macro allowing to declare an action concrete class
Definition: ActionHdrMacros.h:27
ActionPtr _pAction
pointer to action to be updated
Definition: UpdateRemoteAction.h:98
Guid _providerGuid
provider guid has known on remote machine
Definition: UpdateRemoteAction.h:86
eQueryActionResult _queryActionResult
action request success flag
Definition: UpdateRemoteAction.h:92