diff options
Diffstat (limited to 'TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp b/TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp index bbf4b03a030..0c5d3120256 100644 --- a/TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp +++ b/TAO/orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp @@ -9,12 +9,12 @@ Country_i::Country_i (CORBA::ORB_ptr orb) : orb_ (CORBA::ORB::_duplicate (orb)) { } - + // Implementation skeleton destructor Country_i::~Country_i (void) { } - + void Country_i::update_population (const char * country, CORBA::Long population ACE_ENV_ARG_DECL_NOT_USED) @@ -23,25 +23,24 @@ void Country_i::update_population (const char * country, { //Add your implementation here ACE_DEBUG ((LM_DEBUG, "Country %s has population %d\n", - country, population)); + country, population)); } - + CORBA::Object_ptr -Country_i::get_typed_consumer (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) +Country_i::get_typed_consumer (void) ACE_THROW_SPEC ((CORBA::SystemException)) { //Add your implementation here ACE_DEBUG ((LM_DEBUG, "Country_i::get_typed_consumer called...\n")); - Country_var ret = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK_RETURN (CORBA::Object::_nil ()); + Country_var ret = this->_this (); ACE_DEBUG ((LM_DEBUG, "...returning CORBA::Object_ptr for Country_i\n")); return Country::_duplicate(ret.in ()); } - + void Country_i::push (const CORBA::Any & /* data */ ACE_ENV_ARG_DECL_NOT_USED) @@ -51,9 +50,9 @@ Country_i::push (const CORBA::Any & /* data */ { //Add your implementation here } - + void -Country_i::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL) +Country_i::disconnect_push_consumer (void) ACE_THROW_SPEC ((CORBA::SystemException)) { @@ -62,19 +61,15 @@ Country_i::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL) // Deactivate the impl PortableServer::POA_var t_poa = - this->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK; - + this->_default_POA (); + PortableServer::ObjectId_var t_id = t_poa->servant_to_id (this ACE_ENV_ARG_PARAMETER); - ACE_CHECK; t_poa->deactivate_object (t_id.in () ACE_ENV_ARG_PARAMETER); - ACE_CHECK; ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Country_i::disconnect_push_consumer, ") ACE_TEXT ("calling ORB shutdown...\n"))); orb_->shutdown (0 ACE_ENV_ARG_PARAMETER); - ACE_CHECK; } |