diff options
Diffstat (limited to 'tests/NestedUpcall/MT_Client_Test/local_server.h')
-rw-r--r-- | tests/NestedUpcall/MT_Client_Test/local_server.h | 89 |
1 files changed, 44 insertions, 45 deletions
diff --git a/tests/NestedUpcall/MT_Client_Test/local_server.h b/tests/NestedUpcall/MT_Client_Test/local_server.h index b486c2f443e..731fd936d21 100644 --- a/tests/NestedUpcall/MT_Client_Test/local_server.h +++ b/tests/NestedUpcall/MT_Client_Test/local_server.h @@ -1,22 +1,17 @@ -// -*- c++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/NestedUpCalls/MT_Client_Test -// -// = FILENAME -// local_server.h -// -// = DESCRIPTION -// This class implements a simple server for the -// Nested Upcalls - MT Client test -// -// = AUTHORS -// Michael Kircher -// -// ============================================================================ + +//============================================================================= +/** + * @file local_server.h + * + * $Id$ + * + * This class implements a simple server for the + * Nested Upcalls - MT Client test + * + * + * @author Michael Kircher + */ +//============================================================================= #ifndef MT_CLIENT_TEST_MT_SERVER_H #define MT_CLIENT_TEST_MT_SERVER_H @@ -35,76 +30,80 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL class TAO_ORB_Manager; TAO_END_VERSIONED_NAMESPACE_DECL +/** + * @class MT_Server + * + * @brief This is the server for the mt_object + * + * See the README file for more information. + */ class MT_Server { - // = TITLE - // This is the server for the mt_object - // - // = DESCRIPTION - // See the README file for more information. public: + /// Default constructor MT_Server (); - // Default constructor + /// Destructor ~MT_Server (void); - // Destructor + /// Initialize the MT_Server state - parsing arguments and ... int init (int argc, ACE_TCHAR **argv, TAO_ORB_Manager* orb_manager_ptr); - // Initialize the MT_Server state - parsing arguments and ... + /// Run the orb int run (void); - // Run the orb + /// Just run it briefly int run_ORB_briefly (void); - // Just run it briefly private: + /// reading the IOR of mt object in int read_ior (ACE_TCHAR *filename); - // reading the IOR of mt object in + /// Parses the commandline arguments. int parse_args (void); - // Parses the commandline arguments. + /// Key of the object char *object_key_; - // Key of the object + /// File to output the IOR of the object A. FILE* ior_output_file_; - // File to output the IOR of the object A. + /// The ORB manager TAO_ORB_Manager* orb_manager_ptr_; - // The ORB manager + /// Implementation object MT_Object_i mT_Object_i_; - // Implementation object + /// reference for the distant MT Object MT_Object_var mT_Object_var_; - // reference for the distant MT Object + /// Number of commandline arguments. int argc_; - // Number of commandline arguments. + /// commandline arguments. ACE_TCHAR **argv_; - // commandline arguments. + /// number of times the server should call to the disted MT OBject unsigned int iterations_; - // number of times the server should call to the disted MT OBject + /// IOR of our servant. CORBA::String_var str_; - // IOR of our servant. }; +/** + * @class MT_Server_Task + * + * @brief Wrapper for the MT_Server to be an extra thread + * + * No big purpose, just wrapping + */ class MT_Server_Task : public ACE_Task<ACE_SYNCH> { - // = TITLE - // Wrapper for the MT_Server to be an extra thread - // - // = DESCRIPTION - // No big purpose, just wrapping public: MT_Server_Task (ACE_Thread_Manager* thr_mgr_ptr, int argc, |