23 #ifndef ICE_SERVER_TEMPLATE_H
24 #define ICE_SERVER_TEMPLATE_H
30 template<
typename TserverBase,
typename TserverClass,
typename TImplClass,
typename TIceClass>
35 const std::string& contolPortName,
36 const std::string& endpointName);
46 Ice::ObjectAdapterPtr d_adapter;
47 TserverBase* d_iceserver;
48 const std::string d_contolPortName, d_endpointName;
51 template<
typename TserverBase,
typename TserverClass,
typename TImplClass,
typename TIceClass>
53 (TImplClass* _this,
const std::string& controlPortName,
const std::string& endpointName)
56 d_contolPortName(controlPortName),
57 d_endpointName(endpointName)
60 template<
typename TserverBase,
typename TserverClass,
typename TImplClass,
typename TIceClass>
64 d_adapter->deactivate();
70 template<
typename TserverBase,
typename TserverClass,
typename TImplClass,
typename TIceClass>
78 TserverClass* server_ice(
new TserverClass());
79 TIceClass obj(server_ice);
82 d_adapter->add(obj,
id);
83 d_adapter->activate();
86 std::cout << std::endl <<
"Ice Radio Endpoint: "
90 d_iceserver = (TserverBase*) server_ice;
Definition: ice_application_base.h:64
Definition: ice_server_template.h:31
static TserverClass * d_this
Definition: ice_application_base.h:86
TserverBase * i_impl()
Definition: ice_server_template.h:71
~ice_server_template()
Definition: ice_server_template.h:61
virtual void sync_reacquire()
Definition: ice_application_base.h:182
ice_server_template(TImplClass *_this, const std::string &contolPortName, const std::string &endpointName)
Definition: ice_server_template.h:53
void set_endpoint(const std::string &endpoint)
Definition: ice_application_base.h:76
bool have_ice_config()
Definition: ice_application_base.h:75
virtual bool reacquire_sync()
Definition: ice_application_base.h:176
static const std::vector< std::string > endpoints()