blob: 29e6a02c3f745bda9dd85d7cc177d81ec0b215f9 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
// $Id$
//===============================================================================
//
//
// = FILENAME
// MyFooServant.cpp
//
// = DESCRIPTION
// This is a simple foo servant implementation
//
// = AUTHOR
// Irfan Pyarali
//
//==================================================================================
#include "MyFooServant.h"
// Constructor
MyFooServant::MyFooServant (PortableServer::POA_ptr poa,
CORBA::Long value)
: poa_ (PortableServer::POA::_duplicate (poa)),
value_ (value)
{
}
// Destructor
MyFooServant::~MyFooServant (void)
{
}
// Return the Default POA of this Servant
PortableServer::POA_ptr
MyFooServant::_default_POA (CORBA::Environment &/*env*/)
{
return PortableServer::POA::_duplicate (this->poa_.in());
}
// Return this->value
CORBA::Long
MyFooServant::doit (CORBA::Environment &/*env*/)
{
return this->value_;
}
|