summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp56
1 files changed, 21 insertions, 35 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
index 9cdfaccbb51..58400838c17 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
@@ -76,9 +76,7 @@ TAO_Notify_Tests_Periodic_Supplier_Command::init (ACE_Arg_Shifter& arg_shifter)
LOOKUP_MANAGER->resolve (act_mgr);
{
- ACE_DECLARE_NEW_CORBA_ENV;
- act_mgr->_register (supplier, this->name_.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ act_mgr->_register (supplier, this->name_.c_str ());
}
supplier->init_state (arg_shifter);
@@ -147,9 +145,7 @@ TAO_Notify_Tests_Periodic_Supplier_Command::supplier (void)
// Locate the supplier
TAO_Notify_Tests_Periodic_Supplier* supplier = 0;
- ACE_DECLARE_NEW_CORBA_ENV;
- act_mgr->resolve (supplier, this->name_.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
+ act_mgr->resolve (supplier, this->name_.c_str ());
if (supplier == 0)
ACE_DEBUG ((LM_DEBUG, "Supplier %s not found by Lookup Manager\n", this->name_.c_str ()));
@@ -158,104 +154,94 @@ TAO_Notify_Tests_Periodic_Supplier_Command::supplier (void)
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_create (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_create (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier = this->supplier ();
if (supplier == 0)
return;
- supplier->connect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ supplier->connect ();
ACE_DEBUG ((LM_DEBUG, "Supplier %s is connected\n", this->name_.c_str ()));
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_offers (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_offers (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier = this->supplier ();
if (supplier == 0)
return;
- supplier->offer_change (this->added_, this->removed_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ supplier->offer_change (this->added_, this->removed_);
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_disconnect (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_disconnect (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier= this->supplier ();
if (supplier == 0)
return;
- supplier->disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ supplier->disconnect ();
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_deactivate (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_deactivate (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier = this->supplier ();
if (supplier == 0)
return;
- supplier->deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ supplier->deactivate ();
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_status (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_status (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier = this->supplier ();
if (supplier == 0)
return;
- supplier->status (ACE_ENV_SINGLE_ARG_PARAMETER);
+ supplier->status ();
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::handle_set_qos (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::handle_set_qos (void)
{
TAO_Notify_Tests_Periodic_Supplier* supplier = this->supplier ();
if (supplier == 0)
return;
- supplier->set_qos (this->qos_ ACE_ENV_ARG_PARAMETER);
+ supplier->set_qos (this->qos_);
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
+TAO_Notify_Tests_Periodic_Supplier_Command::execute_i (void)
{
if (this->command_ == CREATE)
{
- this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_create ();
}
else if (this->command_ == OFFER)
{
- this->handle_offers (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_offers ();
}
else if (this->command_ == DISCONNECT)
{
- this->handle_disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_disconnect ();
}
else if (this->command_ == DEACTIVATE)
{
- this->handle_deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_deactivate ();
}
else if (this->command_ == DUMP_STATE)
{
- this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_status ();
}
else if (this->command_ == SET_QOS)
{
- this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->handle_set_qos ();
}
}