Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / ImplRepo_Service / Locator_Loader.h
blob31735821a36abe3ae8e0363a35bfc0e4ca4e3bb5
1 // -*- C++ -*-
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)
12 # 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
19 public:
20 ImR_Locator_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,
27 int argc,
28 ACE_TCHAR *argv[]);
30 // Unlike other service objects, we have our own orb.
31 int run(void);
33 private:
34 ImR_Locator_i service_;
35 Options opts_;
36 ACE_Auto_Ptr<ImR_Locator_ORB_Runner> runner_;
37 private:
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)
45 #endif