Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2417_Regression / subscriber_impl.cpp
blobfb0af4e411f3ca3e16ff1a6d133b263894aae450
1 #include "subscriber_impl.h"
2 #include "ace/OS_NS_stdio.h"
4 Subscriber_impl::Subscriber_impl(CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
6 , count(0)
10 Subscriber_impl::~Subscriber_impl()
14 void
15 Subscriber_impl::onData (::CORBA::Double)
17 ++count;
18 if (count > 100)
19 this->shutdown();
22 ::CORBA::Boolean
23 Subscriber_impl::isAlive ()
25 return true;
28 void Subscriber_impl::shutdown()
30 this->orb_->shutdown (false);