Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / ImplRepo_Service / Activator_Loader.h
blobb12b8d345061f24887aa50ec7949cab3380cedf7
1 // -*- C++ -*-
2 #ifndef TAO_IMR_ACTIVATOR_LOADER_H
3 #define TAO_IMR_ACTIVATOR_LOADER_H
5 #include "ImR_Activator_i.h"
6 #include "Activator_Options.h"
8 #include "tao/Object_Loader.h"
10 #include <memory>
12 #if !defined (ACE_LACKS_PRAGMA_ONCE)
13 # pragma once
14 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 class ImR_Activator_ORB_Runner;
18 class Activator_Export ImR_Activator_Loader : public TAO_Object_Loader
20 public:
21 ImR_Activator_Loader();
23 virtual int init (int argc, ACE_TCHAR *argv[]);
25 virtual int fini ();
27 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
28 int argc,
29 ACE_TCHAR *argv[]);
31 // Unlike other service objects, we have our own orb.
32 int run();
34 private:
35 ImR_Activator_i service_;
36 Activator_Options opts_;
37 std::unique_ptr<ImR_Activator_ORB_Runner> runner_;
39 private:
40 ImR_Activator_Loader (const ImR_Activator_Loader &) = delete;
41 ImR_Activator_Loader &operator = (const ImR_Activator_Loader &) = delete;
42 ImR_Activator_Loader (ImR_Activator_Loader &&) = delete;
43 ImR_Activator_Loader &operator = (ImR_Activator_Loader &&) = delete;
46 ACE_FACTORY_DECLARE (Activator, ImR_Activator_Loader)
48 #endif