Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / ImplRepo_Service / Locator_Loader.h
blob535de5a84a0c83970348128cb94092f82807f18f
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 <memory>
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 ();
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();
33 private:
34 ImR_Locator_i service_;
35 Options opts_;
36 std::unique_ptr<ImR_Locator_ORB_Runner> runner_;
37 private:
38 ImR_Locator_Loader (const ImR_Locator_Loader &) = delete;
39 ImR_Locator_Loader &operator = (const ImR_Locator_Loader &) = delete;
40 ImR_Locator_Loader (ImR_Locator_Loader &&) = delete;
41 ImR_Locator_Loader &operator = (ImR_Locator_Loader &&) = delete;
44 ACE_FACTORY_DECLARE (Locator, ImR_Locator_Loader)
46 #endif