summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/POA/Demux/demux_test_i.h
blob: 8b89b87fa397f08566abf06cf6488855994ae215 (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
//$Id$

#if !defined (TAO_DEMUX_TEST_I_H)
#define TAO_DEMUX_TEST_I_H

// Implementation of TAO's Demux_Test interface

#include "demux_testS.h"

class Demux_Test_i : public POA_Demux_Test
{
public:

  Demux_Test_i (void);
  //ctor.
  
  Demux_Test_i (PortableServer::POA_ptr poa)
    : poa_ (PortableServer::POA::_duplicate (poa))
    {
    };
  // ctor 
  
  ~Demux_Test_i (void);
  // dtor 
  
  // Return the Default POA of this Servant
  PortableServer::POA_ptr _default_POA (CORBA::Environment &/*env*/)
    {
      return PortableServer::POA::_duplicate (this->poa_.in ());
    };
  
  void M302 (CORBA::Environment &env = 
             CORBA::Environment::default_environment ());
  
  void shutdown (CORBA::Environment &env = 
                 CORBA::Environment::default_environment ());
  
private: 
  PortableServer::POA_var poa_;
  // Implement a different _default_POA()
  
};

#endif /* TAO_DEMUX_TEST_I_H */