Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / NestedUpcall / Triangle_Test / server_A.h
blobb645947bffe9ff3e79c7640e217eb5e03e3d86f9
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
37 public:
39 /// Default constructor
40 Object_A_Server (void);
42 /// Destructor
43 ~Object_A_Server (void);
45 /// Initialize the NestedUpCalls_Server state - parsing arguments and ...
46 int init (int argc,
47 ACE_TCHAR **argv);
49 /// Run the orb
50 int run (void);
52 private:
53 /// Parses the commandline arguments.
54 int parse_args (void);
56 /// File to output the IOR of the object A.
57 FILE* ior_output_file_;
59 /// The ORB manager
60 TAO_ORB_Manager orb_manager_;
62 /// Implementation object of the NestedUpCalls reactor.
63 Object_A_i object_A_i_;
65 /// Number of commandline arguments.
66 int argc_;
68 /// commandline arguments.
69 ACE_TCHAR **argv_;
72 #endif /* _TRIANGLE_TEST_OBJECT_A_SERVER_H */