=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tests / Object_Loader / Test_i.cpp
blobd858a4a5bd082c18197d9f5b556d6a0786723001
1 #include "Test_i.h"
3 CORBA::Long
4 Test_i::instance_count_ = 0;
6 Test_i::Test_i (PortableServer::POA_ptr poa)
7 : poa_ (PortableServer::POA::_duplicate (poa))
9 Test_i::instance_count_++;
12 CORBA::Long
13 Test_i::instance_count ()
15 return Test_i::instance_count_;
18 void
19 Test_i::destroy ()
21 PortableServer::POA_var poa =
22 this->_default_POA ();
23 PortableServer::ObjectId_var oid =
24 poa->servant_to_id (this);
25 poa->deactivate_object (oid.in ());
28 PortableServer::POA_ptr
29 Test_i::_default_POA ()
31 return PortableServer::POA::_duplicate (this->poa_.in ());