blob: 92a7d0f77cffe88f2286666b3bc44bb77469cc56 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
// $Id$
//=============================================================================
//
//
// = FILENAME
// Foo_i.h
//
// = DESCRIPTION
// Defines Foo_i class for the Foo interface
//
// = AUTHOR
// Irfan Pyarali
//
//=============================================================================
#if !defined (FOO_I_H)
#define FOO_I_H
#include "FooS.h"
class Simple_Foo_i
{
public:
// constructor - takes a POA and a value parameter
Simple_Foo_i (CORBA::Long value);
// Simple doit method
virtual CORBA::Long doit (CORBA::Environment &env);
protected:
CORBA::Long value_;
};
class Foo_i : public POA_Foo
{
public:
// constructor - takes a POA and a value parameter
Foo_i (CORBA::Long value,
PortableServer::POA_ptr poa);
// Simple doit method
virtual CORBA::Long doit (CORBA::Environment &env);
// Returns the Default POA of this Servant object
virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env);
protected:
CORBA::Long value_;
PortableServer::POA_var poa_;
// Default poa associated with this servant
};
class Outer_i
{
public:
class Foo_i : public POA_Outer::Foo
{
public:
// constructor - takes a POA and a value parameter
Foo_i (CORBA::Long value,
PortableServer::POA_ptr poa);
// Simple doit method
virtual CORBA::Long doit (CORBA::Environment &env);
// Returns the Default POA of this Servant object
virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env);
protected:
CORBA::Long value_;
PortableServer::POA_var poa_;
// Default poa associated with this servant
};
class Inner_i
{
public:
class Foo_i : public POA_Outer::Inner::Foo
{
public:
// constructor - takes a POA and a value parameter
Foo_i (CORBA::Long value,
PortableServer::POA_ptr poa);
// Simple doit method
virtual CORBA::Long doit (CORBA::Environment &env);
// Returns the Default POA of this Servant object
virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env);
protected:
CORBA::Long value_;
PortableServer::POA_var poa_;
// Default poa associated with this servant
};
};
};
#endif /* FOO_I_H */
|