summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2936_Regression/PersistentPOA.h
blob: 1bd7c53e1094da583f4c7b5c551a85fff3a6f1c3 (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
#ifndef PersistentPoa_h
#define PersistentPoa_h

#include "ace/Service_Object.h"
#include "tao/ORB.h"
#include "tao/PortableServer/PortableServer.h"

#include "bug2936_export.h"


class bug2936_Export PersistentPoa
:
  public ACE_Service_Object
{
  // public types and methods
  public:
    /// Default constructor.
    PersistentPoa ( );

    /// Destructor.
    ~PersistentPoa ( )
      throw ();

  // protected types and methods
  protected:
    virtual int init (int argc, ACE_TCHAR *argv[]);

    virtual int fini ();

  // private methods and instance variables
  private:
    CORBA::ORB_var                 mv_orb;
    PortableServer::POA_var        mv_rootPOA;
    PortableServer::POA_var        mv_thisPOA;
    PortableServer::POAManager_var mv_poaManager;
}; /* end of class PersistentPoa */


ACE_FACTORY_DECLARE (bug2936, PersistentPoa)


#endif /* PersistentPoa_h */