Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2936_Regression / DllORB.h
blob9b3ae488bfb4b54eb729d8f66c410e9dc61ab721
1 #ifndef DLLORB_H
2 #define DLLORB_H
4 #include "ace/Task.h"
5 #include "tao/ORB.h"
6 #include "tao/PortableServer/PortableServer.h"
7 #include "bug2936_export.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
10 class ACE_Thread_Barrier;
11 ACE_END_VERSIONED_NAMESPACE_DECL
13 class bug2936_Export DllORB: public ACE_Task_Base
15 public:
16 DllORB ();
17 virtual ~DllORB ();
19 inline CORBA::ORB_ptr orb () const
21 return CORBA::ORB::_duplicate (mv_orb_.in ());
24 virtual int init (int argc, ACE_TCHAR *argv[]);
26 virtual int fini ();
28 protected:
29 virtual int svc ();
31 private:
32 unsigned int failPrePostInit_;
33 ACE_Thread_Barrier* mp_barrier_;
34 CORBA::ORB_var mv_orb_;
35 PortableServer::POA_var mv_rootPOA_;
36 PortableServer::POAManager_var mv_poaManager_;
39 ACE_FACTORY_DECLARE (bug2936, DllORB)
41 #endif /* DLLORB_H */