diff options
Diffstat (limited to 'tests/BiDirectional_DelayedUpcall/test_i.h')
-rw-r--r-- | tests/BiDirectional_DelayedUpcall/test_i.h | 73 |
1 files changed, 36 insertions, 37 deletions
diff --git a/tests/BiDirectional_DelayedUpcall/test_i.h b/tests/BiDirectional_DelayedUpcall/test_i.h index ba1f46f4764..3a4bc82f063 100644 --- a/tests/BiDirectional_DelayedUpcall/test_i.h +++ b/tests/BiDirectional_DelayedUpcall/test_i.h @@ -1,17 +1,14 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/BiDirectional -// -// = FILENAME -// test_i.h -// -// = AUTHOR -// Balachandran Natarajan <bala@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file test_i.h + * + * $Id$ + * + * @author Balachandran Natarajan <bala@cs.wustl.edu> + */ +//============================================================================= + #ifndef TAO_BIDIRECTIONAL_TEST_I_H #define TAO_BIDIRECTIONAL_TEST_I_H @@ -19,43 +16,45 @@ #include "testS.h" #include "ace/Event_Handler.h" +/** + * @class Callback_i + * + * @brief A callback object to the "client" + * + * To test that the server can call the client on the same + * connection that was established by the client + */ class Callback_i : public virtual POA_Callback { - // = TITLE - // A callback object to the "client" - // - // = DESCRIPTION - // To test that the server can call the client on the same - // connection that was established by the client - // public: + /// ctor Callback_i (CORBA::ORB_ptr orb, Simple_Server_ptr srv); - // ctor + /// Safe way to shutdown void shutdown (void); - // Safe way to shutdown + /// The callback method void callback_method (void); - // The callback method private: + /// The orb + /// The server CORBA::ORB_var orb_; - // The orb Simple_Server_var server_; - // The server }; +/** + * @class Simple_Server_i + * + * @brief Simpler Server implementation + * + * Implements the Simple_Server interface in test.idl + */ class Simple_Server_i : public virtual POA_Simple_Server, public virtual ACE_Event_Handler { - // = TITLE - // Simpler Server implementation - // - // = DESCRIPTION - // Implements the Simple_Server interface in test.idl - // public: + /// ctor Simple_Server_i (CORBA::ORB_ptr orb, int no_iterations); - // ctor // = The Simple_Server methods. CORBA::Long test_method (CORBA::Boolean do_callback); @@ -68,17 +67,17 @@ public: const void *act = 0); private: + /// The ORB CORBA::ORB_var orb_; - // The ORB + /// Flag to indicate, whether we are ready for a remote call. int flag_; - // Flag to indicate, whether we are ready for a remote call. + /// Callback Object Callback_var callback_; - // Callback Object + /// Number of times the callback needs to be called int no_iterations_; - // Number of times the callback needs to be called }; #if defined(__ACE_INLINE__) |