diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-10-28 07:57:07 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-10-28 07:57:07 +0000 |
commit | 55e8d7c6f2dce15286b6b7087f8e792587a31f8f (patch) | |
tree | 7c0fc8cef72b08324fcd21d888872bfe4a300ac9 /TAO/orbsvcs/tests/Event | |
parent | b02c515a2f513cb9089939610e6cfe31d4a07332 (diff) | |
download | ATCD-55e8d7c6f2dce15286b6b7087f8e792587a31f8f.tar.gz |
Thu Oct 28 07:51:17 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* orbsvcs/DevGuideExamples/EventServices/RTEC_MCast_Federated/EchoEventSupplierMain.cpp:
* orbsvcs/examples/ImR/Advanced/TestServer.h:
* orbsvcs/examples/RtEC/MCast/MCast.cpp:
* orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
* orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.inl:
* orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
* orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
* orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp:
* orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
* orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.inl:
* orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
* orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.inl:
* orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
* orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl:
* orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h:
* orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl:
* orbsvcs/tests/EC_MT_Mcast/MCast.cpp:
* orbsvcs/tests/EC_Mcast/EC_Mcast.h:
* orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h:
* orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.cpp:
* orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp:
* orbsvcs/tests/Event/Mcast/Complex/consumer.cpp:
* orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp:
* orbsvcs/tests/Event/Mcast/Simple/consumer.cpp:
* orbsvcs/tests/Event/Mcast/Two_Way/application.cpp:
* orbsvcs/tests/Event/UDP/receiver.cpp:
* orbsvcs/tests/Event/UDP/sender.cpp:
Removed TAO_EC_Servant_Var, use PortableServer::Servant_var instead
Diffstat (limited to 'TAO/orbsvcs/tests/Event')
9 files changed, 14 insertions, 12 deletions
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.cpp b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.cpp index ce760d23290..4d7b998dd0a 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.cpp @@ -10,10 +10,10 @@ EC_Wrapper::EC_Wrapper (void) { } -TAO_EC_Servant_Var<EC_Wrapper> +PortableServer::Servant_var<EC_Wrapper> EC_Wrapper::create (void) { - TAO_EC_Servant_Var<EC_Wrapper> w; + PortableServer::Servant_var<EC_Wrapper> w; ACE_NEW_RETURN (w, EC_Wrapper, w); diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h index 83874c32241..56b377c7878 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h +++ b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h @@ -32,7 +32,7 @@ public: /// Create a new EC_Wrapper object. /// (Constructor access is restricted to insure that all /// EC_Wrapper objects are heap-allocated.) - static TAO_EC_Servant_Var<EC_Wrapper> create (void); + static PortableServer::Servant_var<EC_Wrapper> create (void); /// Destructor. Destroys the Event Channel implementation. virtual ~EC_Wrapper (void); @@ -72,7 +72,7 @@ private: /// Event Channel implementation. /* * Once Event Channel implementation is made reference-counted, this - * pointer should turn into a Servant_Var. + * pointer should turn into a Servant_var. */ TAO_EC_Event_Channel *ec_impl_; diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp b/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp index 9b3800d166d..943195e2bb9 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp @@ -105,7 +105,7 @@ Gateway_EC::run (int argc, ACE_TCHAR ** argv) manager->activate (); // Set up EC. - TAO_EC_Servant_Var<EC_Wrapper> ec_wrapper (EC_Wrapper::create ()); + PortableServer::Servant_var<EC_Wrapper> ec_wrapper (EC_Wrapper::create ()); if (!ec_wrapper.in ()) return -1; diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp b/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp index e2d4ebd7219..bc9c677cd1d 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp @@ -157,7 +157,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) return 1; // Create the consumer and register it with POA. - TAO_EC_Servant_Var<EC_Consumer> consumer_impl = + PortableServer::Servant_var<EC_Consumer> consumer_impl = new EC_Consumer (orb, ec); if (!consumer_impl.in ()) diff --git a/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp b/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp index 50216f31ff9..6940a518994 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp @@ -150,7 +150,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) RtecUDPAdmin::AddrServer::_narrow(tmpobj.in()); // Create and initialize the sender object - TAO_EC_Servant_Var<TAO_ECG_UDP_Sender> sender = + PortableServer::Servant_var<TAO_ECG_UDP_Sender> sender = TAO_ECG_UDP_Sender::create(); TAO_ECG_UDP_Out_Endpoint endpoint; // need to be explicit about the address type when built with @@ -179,7 +179,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) sender->connect (sub); // Create and initialize the receiver - TAO_EC_Servant_Var<TAO_ECG_UDP_Receiver> receiver = + PortableServer::Servant_var<TAO_ECG_UDP_Receiver> receiver = TAO_ECG_UDP_Receiver::create(); // TAO_ECG_UDP_Receiver::init() takes a TAO_ECG_Refcounted_Endpoint. diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp b/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp index ce905b3945c..2738362a2a6 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp @@ -126,7 +126,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) return 1; // Create the consumer and register it with POA. - TAO_EC_Servant_Var<EC_Consumer> consumer_impl = + PortableServer::Servant_var<EC_Consumer> consumer_impl = new EC_Consumer (orb, ec); if (!consumer_impl.in ()) diff --git a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp index 90e1eda5d73..3ac17021462 100644 --- a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp +++ b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp @@ -571,7 +571,7 @@ int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { // We may want this to be alive beyond the next block. - TAO_EC_Servant_Var<Heartbeat_Application> app; + PortableServer::Servant_var<Heartbeat_Application> app; try { diff --git a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp index 6ecc827b526..2b94d185d48 100644 --- a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp @@ -155,7 +155,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) ACE_ES_EVENT_SOURCE_ANY; // Any source is OK // To receive events we need to setup an event handler: - TAO_EC_Servant_Var<TAO_ECG_UDP_Receiver> receiver = TAO_ECG_UDP_Receiver::create(); + PortableServer::Servant_var<TAO_ECG_UDP_Receiver> receiver = + TAO_ECG_UDP_Receiver::create(); TAO_ECG_Mcast_EH mcast_eh (&(*receiver)); // The event handler uses the ORB reactor to wait for multicast diff --git a/TAO/orbsvcs/tests/Event/UDP/sender.cpp b/TAO/orbsvcs/tests/Event/UDP/sender.cpp index bb2955b1c44..3a83d94c10d 100644 --- a/TAO/orbsvcs/tests/Event/UDP/sender.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/sender.cpp @@ -139,7 +139,8 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) } // Now we setup the sender: - TAO_EC_Servant_Var<TAO_ECG_UDP_Sender> sender = TAO_ECG_UDP_Sender::create(); + PortableServer::Servant_var<TAO_ECG_UDP_Sender> sender = + TAO_ECG_UDP_Sender::create(); sender->init (event_channel.in (), address_server.in (), endpoint); |