2 #ifndef TAO_IMR_LOCATOR_LOADER_H
3 #define TAO_IMR_LOCATOR_LOADER_H
5 #include "ImR_Locator_i.h"
7 #include "tao/Object_Loader.h"
9 #include "ace/Auto_Ptr.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 class ImR_Locator_ORB_Runner
;
17 class Locator_Export ImR_Locator_Loader
: public TAO_Object_Loader
22 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
24 virtual int fini (void);
26 virtual CORBA::Object_ptr
create_object (CORBA::ORB_ptr orb
,
30 // Unlike other service objects, we have our own orb.
34 ImR_Locator_i service_
;
36 ACE_Auto_Ptr
<ImR_Locator_ORB_Runner
> runner_
;
38 // Disallow copying and assignment.
39 ImR_Locator_Loader (const ImR_Locator_Loader
&);
40 ImR_Locator_Loader
&operator = (const ImR_Locator_Loader
&);
43 ACE_FACTORY_DECLARE (Locator
, ImR_Locator_Loader
)