Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / NestedUpcall / Triangle_Test / server_A.h
blob21f8d5ccd1874261903c54c2264b1922b78322be
2 //=============================================================================
3 /**
4 * @file server_A.h
6 * This class implements a simple server for the
7 * Nested Upcalls - Triangle test
9 * @author Michael Kircher
11 //=============================================================================
14 #ifndef _TRIANGLE_TEST_OBJECT_A_SERVER_H
15 #define _TRIANGLE_TEST_OBJECT_A_SERVER_H
17 #include "ace/Get_Opt.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "ace/Log_Msg.h"
24 #include "tao/Utils/ORB_Manager.h"
25 #include "Object_A_i.h"
27 /**
28 * @class Object_A_Server
30 * @brief This is the server for the object A in the test.
32 * See the README file for more information.
34 class Object_A_Server
36 public:
37 /// Default constructor
38 Object_A_Server ();
40 /// Destructor
41 ~Object_A_Server ();
43 /// Initialize the NestedUpCalls_Server state - parsing arguments and ...
44 int init (int argc,
45 ACE_TCHAR **argv);
47 /// Run the orb
48 int run ();
50 private:
51 /// Parses the commandline arguments.
52 int parse_args ();
54 /// File to output the IOR of the object A.
55 FILE* ior_output_file_;
57 /// The ORB manager
58 TAO_ORB_Manager orb_manager_;
60 /// Implementation object of the NestedUpCalls reactor.
61 Object_A_i object_A_i_;
63 /// Number of commandline arguments.
64 int argc_;
66 /// commandline arguments.
67 ACE_TCHAR **argv_;
70 #endif /* _TRIANGLE_TEST_OBJECT_A_SERVER_H */