summaryrefslogtreecommitdiff
path: root/TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp')
-rw-r--r--TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp96
1 files changed, 0 insertions, 96 deletions
diff --git a/TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp b/TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp
deleted file mode 100644
index c0fdacf8f6b..00000000000
--- a/TAO/tests/Cubit/TAO/MT_Cubit/Globals.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests
-//
-// = FILENAME
-// Globals.cpp
-//
-// = AUTHOR
-// Nagarajan Surendran <naga@cs.wustl.edu>
-//
-// ============================================================================
-
-#include "Globals.h"
-
-Globals::Globals (void)
- : ior_file (0),
- base_port (0),
- num_of_objs (2),
- use_name_service (1),
- thread_per_rate (0),
- use_multiple_priority (0),
- ready_ (0),
- ready_cnd_ (ready_mtx_),
- barrier_ (0)
-{
- if (ACE_OS::hostname (hostname, BUFSIZ) != 0)
- ACE_DEBUG ((LM_DEBUG,
- "%p\n",
- "gethostname"));
-}
-
-int
-Globals::parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt opts (argc, argv, "sh:p:t:f:rm");
- int c;
-
- ACE_DEBUG ((LM_DEBUG,
- "%s",
- hostname));
-
- while ((c = opts ()) != -1)
- {
- // ACE_DEBUG ((LM_DEBUG,"parse_args:%c ,",c));
- switch (c)
- {
- case 'm':
- use_multiple_priority = 1;
- break;
- case 'r':
- thread_per_rate = 1;
- break;
- case 's':
- use_name_service = 0;
- break;
- case 'f':
- ACE_NEW_RETURN (ior_file,
- char[BUFSIZ],-1);
- ACE_OS::strcpy (ior_file,
- opts.optarg);
- break;
- case 'h':
- ACE_OS::strcpy (hostname, opts.optarg);
- break;
- case 'p':
- base_port = ACE_OS::atoi (opts.optarg);
- // @@ Naga, do we need to keep this printout here or can we
- // remove it?
- break;
- case 't':
- num_of_objs = ACE_OS::atoi (opts.optarg);
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s"
- " \t[-s Means NOT to use the name service] \n"
- " \t[-p <port>]\n"
- " \t[-h <my_hostname>]\n"
- " \t[-t <num_objects>]\n"
- " \t[-f <ior_file>]\n"
- " \t[-r Use thread per rate]\n"
- "\n", argv [0]),
- -1);
- }
- }
-
- if (thread_per_rate == 1)
- num_of_objs = 4;
-
- // Indicates successful parsing of command line.
- return 0;
-}