Go to the documentation of this file.
32 #include <ArmarXCore/interface/core/ManagedIceObjectDependencyBase.h>
34 #include <Ice/Communicator.h>
44 class ManagedIceObjectDependency;
64 public ManagedIceObjectDependencyBase
83 this->iceManager = iceManager;
95 std::string
getName(
const Ice::Current&
c = Ice::emptyCurrent)
override
106 std::string
getType(
const Ice::Current&
c = Ice::emptyCurrent)
override
129 bool result = stateChanged;
130 stateChanged =
false;
140 bool oldResolved = resolved;
141 resolved = checkDependency();
143 if (resolved != oldResolved)
151 virtual bool checkDependency() = 0;
189 proxy = iceManager->getCommunicator()->stringToProxy(getName());
203 proxy->ice_timeout(1000)->ice_ping();
213 Ice::ObjectPrx proxy;
std::map< std::string, ManagedIceObjectDependencyPtr > DependencyList
Map of dependency names and dependecies.
std::string getType(const Ice::Current &c=Ice::emptyCurrent) override
Retrieve type of dependency.
ProxyDependency()
Required by the ProxyDependencyFactory.
bool getStateChanged()
Retrieve whether state has changed since the last call to the method.
std::string getName(const Ice::Current &c=Ice::emptyCurrent) override
Retrieve name of dependency.
bool checkDependency() override
Implementation of the dependency check.
The ProxyDependency class is part of the ManagedIceObjectConnectivity.
void check()
This method is called to check the dependency and update the resolved and statechanged members.
bool getResolved(const Ice::Current &c=Ice::emptyCurrent) override
Retrieve whether dependency is resolved.
The ManagedIceObjectDependency class is part of the ManagedIceObjectConnectivity.
ManagedIceObjectDependency(IceManagerPtr iceManager, std::string name, std::string type)
Constructs a ManagedIceObjectDependency.
ManagedIceObjectDependency()
Required by factory functions.
ProxyDependency(IceManagerPtr iceManager, std::string proxyName)
Constructs a ProxyDependency.
#define ARMARXCORE_IMPORT_EXPORT
This file offers overloads of toIce() and fromIce() functions for STL container types.