Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / POA / TIE / test_i.h
blob0cdc235ffad29ed6e7bde284e34ed35b7eb23f0b
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file test_i.h
7 * Defines implementation classes for the interfaces
9 * @author Irfan Pyarali
11 //=============================================================================
14 #include "testS.h"
16 class Tie_i
18 public:
19 // constructor - takes a POA and a value parameter
20 Tie_i (CORBA::Long value);
22 /// Destructor.
23 virtual ~Tie_i ();
25 // Simple doit method
26 virtual CORBA::Long doit ();
28 protected:
29 CORBA::Long value_;
32 class A_i : public POA_A
34 public:
35 // constructor - takes a POA and a value parameter
36 A_i (CORBA::Long value,
37 PortableServer::POA_ptr poa);
39 // Simple doit method
40 virtual CORBA::Long doit ();
42 // Returns the Default POA of this Servant object
43 virtual PortableServer::POA_ptr _default_POA ();
45 protected:
46 CORBA::Long value_;
48 /// Default poa associated with this servant
49 PortableServer::POA_var poa_;
52 class Outer_i
54 public:
55 class B_i : public POA_Outer::B
57 public:
58 // constructor - takes a POA and a value parameter
59 B_i (CORBA::Long value,
60 PortableServer::POA_ptr poa);
62 // Simple doit method
63 virtual CORBA::Long doit ();
65 // Returns the Default POA of this Servant object
66 virtual PortableServer::POA_ptr _default_POA ();
68 protected:
69 CORBA::Long value_;
71 /// Default poa associated with this servant
72 PortableServer::POA_var poa_;
75 class Inner_i
77 public:
78 class C_i : public POA_Outer::Inner::C
80 public:
81 // constructor - takes a POA and a value parameter
82 C_i (CORBA::Long value,
83 PortableServer::POA_ptr poa);
85 // Simple doit method
86 virtual CORBA::Long doit ();
88 // Returns the Default POA of this Servant object
89 virtual PortableServer::POA_ptr _default_POA ();
91 protected:
92 CORBA::Long value_;
94 /// Default poa associated with this servant
95 PortableServer::POA_var poa_;