summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Generic_Servant/MyFooServant.cpp
blob: 91f748c19009a5d9442a5772e58a4663d4bc7dc0 (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
#include "MyFooServant.h"

MyFooServant::MyFooServant (PortableServer::POA_ptr poa, 
                            CORBA::Long value)
  : poa_ (PortableServer::POA::_duplicate (poa)), 
    value_ (value) 
{
}
  
MyFooServant::~MyFooServant (void) 
{ 
}

PortableServer::POA_ptr 
MyFooServant::_default_POA (CORBA::Environment &env)
{ 
  return PortableServer::POA::_duplicate (this->poa_); 
}

CORBA::Long 
MyFooServant::doit (CORBA::Environment &env) 
{ 
  return this->value_; 
}