blob: d858a4a5bd082c18197d9f5b556d6a0786723001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "Test_i.h"
CORBA::Long
Test_i::instance_count_ = 0;
Test_i::Test_i (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa))
{
Test_i::instance_count_++;
}
CORBA::Long
Test_i::instance_count ()
{
return Test_i::instance_count_;
}
void
Test_i::destroy ()
{
PortableServer::POA_var poa =
this->_default_POA ();
PortableServer::ObjectId_var oid =
poa->servant_to_id (this);
poa->deactivate_object (oid.in ());
}
PortableServer::POA_ptr
Test_i::_default_POA ()
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
|