Go to the documentation of this file.
32 #include <Ice/Communicator.h>
34 #include <ArmarXCore/interface/core/ManagedIceObjectDependencyBase.h>
44 class ManagedIceObjectDependency;
63 public ManagedIceObjectDependencyBase
84 this->iceManager = iceManager;
97 getName(
const Ice::Current&
c = Ice::emptyCurrent)
override
109 getType(
const Ice::Current&
c = Ice::emptyCurrent)
override
134 bool result = stateChanged;
135 stateChanged =
false;
146 bool oldResolved = resolved;
147 resolved = checkDependency();
149 if (resolved != oldResolved)
157 virtual bool checkDependency() = 0;
197 proxy = iceManager->getCommunicator()->stringToProxy(getName());
212 proxy->ice_timeout(1000)->ice_ping();
223 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.