diff options
Diffstat (limited to 'TAO/orbsvcs/lib/RtecEventCommS.cpp')
-rw-r--r-- | TAO/orbsvcs/lib/RtecEventCommS.cpp | 162 |
1 files changed, 0 insertions, 162 deletions
diff --git a/TAO/orbsvcs/lib/RtecEventCommS.cpp b/TAO/orbsvcs/lib/RtecEventCommS.cpp deleted file mode 100644 index 72e0c9882ff..00000000000 --- a/TAO/orbsvcs/lib/RtecEventCommS.cpp +++ /dev/null @@ -1,162 +0,0 @@ -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO ORB and the TAO IDL Compiler have been developed by Washington -// University Computer Science's Distributed Object Computing Group. -// -// Information on TAO is available at -// http://www.cs.wustl.edu/~schmidt/TAO.html - -#include "RtecEventCommS.h" - -#if !defined (__ACE_INLINE__) -#include "RtecEventCommS.i" -#endif // !defined INLINE - -static const TAO_operation_db_entry RtecEventComm_PushConsumer_operations [] = { - {"push", &POA_RtecEventComm::PushConsumer::push_skel}, - {"disconnect_push_consumer", &POA_RtecEventComm::PushConsumer::disconnect_push_consumer_skel}, - {"_is_a", &POA_RtecEventComm::PushConsumer::_is_a_skel} -}; - -TAO_Dynamic_Hash_OpTable tao_RtecEventComm_PushConsumer_optable (RtecEventComm_PushConsumer_operations, 3, 6); -// skeleton constructor -POA_RtecEventComm::PushConsumer::PushConsumer (const char *obj_name) -{ - const CORBA::String repoID = "IDL:RtecEventComm/PushConsumer:1.0"; // repository ID - IIOP_Object *data; // Actual object reference - TAO_ORB_Core *ocp = TAO_ORB_Core_instance (); // underlying ORB core instance - CORBA::POA_ptr oa = TAO_ORB_Core_instance ()->root_poa (); // underlying OA - const ACE_INET_Addr &addr = ocp->orb_params ()->addr (); - this->optable_ = &tao_RtecEventComm_PushConsumer_optable; - - // set up an IIOP object - data = new IIOP_Object (CORBA::string_dup (repoID), addr, obj_name); - this->set_parent (data); // store the IIOP obj ref with us - this->sub_ = this; // set the most derived type to be us - if (oa) oa->bind (data->profile.object_key, this); // register ourselves -} - -void POA_RtecEventComm::PushConsumer::push_skel (CORBA::ServerRequest &_tao_server_request, CORBA::Object_ptr _tao_object_reference, CORBA::Environment &_tao_environment) -{ - CORBA::NVList_ptr nvlist; - POA_RtecEventComm::PushConsumer_ptr impl; - RtecEventComm::EventSet data; - CORBA::NamedValue_ptr nv_data; - CORBA::Any any_data (RtecEventComm::_tc_EventSet, &data); // ORB does not own - - // create an NV list and populate it with typecodes - _tao_server_request.orb ()->create_list (0, nvlist); // initialize a list - // add each argument according to the in, out, inout semantics - nv_data = nvlist->add_value ("data", any_data, CORBA::ARG_IN, _tao_environment); - // parse the arguments - _tao_server_request.params (nvlist, _tao_environment); - if (_tao_environment.exception ()) return; - impl = (POA_RtecEventComm::PushConsumer_ptr) _tao_object_reference->get_subclass (); - impl->push(data, _tao_environment); - -} - -void POA_RtecEventComm::PushConsumer::disconnect_push_consumer_skel (CORBA::ServerRequest &_tao_server_request, CORBA::Object_ptr _tao_object_reference, CORBA::Environment &_tao_environment) -{ - CORBA::NVList_ptr nvlist; - POA_RtecEventComm::PushConsumer_ptr impl; - - // create an NV list and populate it with typecodes - _tao_server_request.orb ()->create_list (0, nvlist); // initialize a list - // add each argument according to the in, out, inout semantics - // parse the arguments - _tao_server_request.params (nvlist, _tao_environment); - if (_tao_environment.exception ()) return; - impl = (POA_RtecEventComm::PushConsumer_ptr) _tao_object_reference->get_subclass (); - impl->disconnect_push_consumer(_tao_environment); - -} - -void POA_RtecEventComm::PushConsumer::_is_a_skel (CORBA::ServerRequest &req, CORBA::Object_ptr /* obj */, CORBA::Environment &env) -{ - const CORBA::String type_id = "IDL:RtecEventComm/PushConsumer:1.0"; // repository ID - CORBA::NVList_ptr nvlist; - CORBA::NamedValue_ptr nv; - CORBA::Any temp_value (CORBA::_tc_string); - CORBA::Any *any; - CORBA::Boolean *retval; - CORBA::String value; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA::ARG_IN, env); - req.params (nvlist, env); // parse the args - if (env.exception () != 0) return; - value = *(CORBA::String *)nv->value ()->value (); - if (ACE_OS::strcmp ((char *)value, (char *)type_id) == 0 - || ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)) == 0) - - retval = new CORBA::Boolean (CORBA::B_TRUE); - else - retval = new CORBA::Boolean (CORBA::B_FALSE); - any = new CORBA::Any (CORBA::_tc_boolean, retval, CORBA::B_TRUE); - req.result (any, env); -} - -static const TAO_operation_db_entry RtecEventComm_PushSupplier_operations [] = { - {"disconnect_push_supplier", &POA_RtecEventComm::PushSupplier::disconnect_push_supplier_skel}, - {"_is_a", &POA_RtecEventComm::PushSupplier::_is_a_skel} -}; - -TAO_Dynamic_Hash_OpTable tao_RtecEventComm_PushSupplier_optable (RtecEventComm_PushSupplier_operations, 2, 4); -// skeleton constructor -POA_RtecEventComm::PushSupplier::PushSupplier (const char *obj_name) -{ - const CORBA::String repoID = "IDL:RtecEventComm/PushSupplier:1.0"; // repository ID - IIOP_Object *data; // Actual object reference - TAO_ORB_Core *ocp = TAO_ORB_Core_instance (); // underlying ORB core instance - CORBA::POA_ptr oa = TAO_ORB_Core_instance ()->root_poa (); // underlying OA - const ACE_INET_Addr &addr = ocp->orb_params ()->addr (); - this->optable_ = &tao_RtecEventComm_PushSupplier_optable; - - // set up an IIOP object - data = new IIOP_Object (CORBA::string_dup (repoID), addr, obj_name); - this->set_parent (data); // store the IIOP obj ref with us - this->sub_ = this; // set the most derived type to be us - if (oa) oa->bind (data->profile.object_key, this); // register ourselves -} - -void POA_RtecEventComm::PushSupplier::disconnect_push_supplier_skel (CORBA::ServerRequest &_tao_server_request, CORBA::Object_ptr _tao_object_reference, CORBA::Environment &_tao_environment) -{ - CORBA::NVList_ptr nvlist; - POA_RtecEventComm::PushSupplier_ptr impl; - - // create an NV list and populate it with typecodes - _tao_server_request.orb ()->create_list (0, nvlist); // initialize a list - // add each argument according to the in, out, inout semantics - // parse the arguments - _tao_server_request.params (nvlist, _tao_environment); - if (_tao_environment.exception ()) return; - impl = (POA_RtecEventComm::PushSupplier_ptr) _tao_object_reference->get_subclass (); - impl->disconnect_push_supplier(_tao_environment); - -} - -void POA_RtecEventComm::PushSupplier::_is_a_skel (CORBA::ServerRequest &req, CORBA::Object_ptr /* obj */, CORBA::Environment &env) -{ - const CORBA::String type_id = "IDL:RtecEventComm/PushSupplier:1.0"; // repository ID - CORBA::NVList_ptr nvlist; - CORBA::NamedValue_ptr nv; - CORBA::Any temp_value (CORBA::_tc_string); - CORBA::Any *any; - CORBA::Boolean *retval; - CORBA::String value; - - req.orb()->create_list (0, nvlist); - nv = nvlist->add_value (0, temp_value, CORBA::ARG_IN, env); - req.params (nvlist, env); // parse the args - if (env.exception () != 0) return; - value = *(CORBA::String *)nv->value ()->value (); - if (ACE_OS::strcmp ((char *)value, (char *)type_id) == 0 - || ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)) == 0) - - retval = new CORBA::Boolean (CORBA::B_TRUE); - else - retval = new CORBA::Boolean (CORBA::B_FALSE); - any = new CORBA::Any (CORBA::_tc_boolean, retval, CORBA::B_TRUE); - req.result (any, env); -} - |