summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3251_Regression/PersistentPoa.h
blob: cb43a653b553e469429557ce343c395f8bedf2cd (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
#ifndef bug_3251_PersistentPoa_h
#define bug_3251_PersistentPoa_h

#include <string>

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

#include "DllOrb.h"
#include "bug_3251_export.h"

class bug_3251_Export PersistentPoa:  public ACE_Service_Object
{
  // public types and methods
  public:
    PersistentPoa ( );

    ~PersistentPoa ( )
      throw ();

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

    virtual int fini ();

  // private methods and instance variables
  private:
    std::string                    m_poaName;
    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 (bug_3251, PersistentPoa)

#endif /* bug_3251_PersistentPoa_h */