IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RegisterComputerInfo.h
1 // RegisterComputerInfo.h:
3 // -----------------------
4 //
15 
16 #ifndef __IPSDKCORE_REGISTERCOMPUTERINFO_H__
17 #define __IPSDKCORE_REGISTERCOMPUTERINFO_H__
18 
19 // suppression warnings
20 // warning C4251: 'ipsdk::core::RegisterComputerInfo::_slavesAddressColl' : class 'std::set<_Kty>' needs to have dll-interface to be used by clients of class 'ipsdk::core::RegisterComputerInfo'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
24 #include <IPSDKCore/Processing/Action/BaseSimpleAction.h>
25 #include <IPSDKCore/Config/Network/NetworkDescriptionTypes.h>
26 #include <IPSDKCore/ComputerInfo/LocalComputerInfo.h>
27 
28 namespace ipsdk {
29 namespace core {
30 
33 
35 {
36  // declare action class
38 
39 protected:
42 
43 public:
46 
47 // methods
48 public:
51  BoolResult init(const LocalComputerInfo& localComputerInfo,
52  const tcpip::Address& initialAddress,
53  const tcpip::Address& masterAddress,
54  const AddressColl& slavesAddressColl);
55 
59  const LocalComputerInfo& getLocalComputerInfoConst() const;
60 
64  const tcpip::Address& getInitialAddress() const;
65 
71  const tcpip::Address& getMasterAddress() const;
72 
76  const AddressColl& getSlavesAddressColl() const;
77 
78 protected:
81  ExecResultDerived runDerived();
82 
87  BoolResult globalCleanDerived();
88 
89 // attributes
90 protected:
94 
98 
104 
108 };
109 
112 
113 } // end of namespace core
114 } // end of namespace ipsdk
115 
116 #pragma warning (pop)
117 
118 #endif // __IPSDKCORE_REGISTERCOMPUTERINFO_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
LocalComputerInfo _localComputerInfo
Definition: RegisterComputerInfo.h:93
tcpip::Address _initialAddress
Definition: RegisterComputerInfo.h:97
Definition: LocalComputerInfo.h:28
derived class of asio io address for ipsdk::tcpip namespace integration
Definition: Types.h:86
#define IPSDKCORE_API
Import/Export macro for library IPSDKCore.
Definition: IPSDKCoreExports.h:27
AddressColl _slavesAddressColl
Definition: RegisterComputerInfo.h:107
tcpip::Address _masterAddress
master address associated to local computer from which action has been sent
Definition: RegisterComputerInfo.h:103
Action allowing to register a remote computer information on local machine.
Definition: RegisterComputerInfo.h:34
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
std::set< tcpip::Address > AddressColl
ordered collection of ip address
Definition: NetworkDescriptionTypes.h:25