diff options
author | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-14 03:49:28 +0000 |
---|---|---|
committer | spark <spark@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-03-14 03:49:28 +0000 |
commit | b55f06ff9a2673ca7458e85bdd528a74a23d44a3 (patch) | |
tree | 1eb127865049e3ba9232f764ded9105811354b4f /TAO/tao/default_client.cpp | |
parent | 2608435a8e47a13b2f58e7047982016e7ea397b7 (diff) | |
download | ATCD-b55f06ff9a2673ca7458e85bdd528a74a23d44a3.tar.gz |
ChangeLogTag: Wed Mar 13 21:41:00 2002 Si Mong Park <spark@ociweb.com>
Diffstat (limited to 'TAO/tao/default_client.cpp')
-rw-r--r-- | TAO/tao/default_client.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp index 804dc0764a2..5b1ff47c1b8 100644 --- a/TAO/tao/default_client.cpp +++ b/TAO/tao/default_client.cpp @@ -36,41 +36,41 @@ TAO_Default_Client_Strategy_Factory::~TAO_Default_Client_Strategy_Factory (void) } int -TAO_Default_Client_Strategy_Factory::init (int argc, char *argv[]) +TAO_Default_Client_Strategy_Factory::init (int argc, ACE_TCHAR* argv[]) { return this->parse_args (argc, argv); } int -TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) +TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[]) { ACE_TRACE ("TAO_Default_Client_Strategy_Factory::parse_args"); int curarg; - for (curarg = 0; curarg < argc && argv[curarg]; curarg++) + for (curarg = 0; curarg < argc && argv[curarg]; ++curarg) { if (ACE_OS::strcasecmp (argv[curarg], - "-ORBProfileLock") == 0) + ACE_LIB_TEXT("-ORBProfileLock")) == 0) { curarg++; if (curarg < argc) { - char *name = argv[curarg]; + ACE_TCHAR* name = argv[curarg]; if (ACE_OS::strcasecmp (name, - "thread") == 0) + ACE_LIB_TEXT("thread")) == 0) this->profile_lock_type_ = TAO_THREAD_LOCK; else if (ACE_OS::strcasecmp (name, - "null") == 0) + ACE_LIB_TEXT("null")) == 0) this->profile_lock_type_ = TAO_NULL_LOCK; else - this->report_option_value_error ("-ORBProfileLock", name); + this->report_option_value_error (ACE_LIB_TEXT("-ORBProfileLock"), name); } } else if (ACE_OS::strcasecmp (argv[curarg], - "-ORBIIOPProfileLock") == 0) + ACE_LIB_TEXT("-ORBIIOPProfileLock")) == 0) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("WARNING: The -ORBIIOPProfileLock option") @@ -79,58 +79,58 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) curarg++; if (curarg < argc) { - char *name = argv[curarg]; + ACE_TCHAR* name = argv[curarg]; if (ACE_OS::strcasecmp (name, - "thread") == 0) + ACE_LIB_TEXT("thread")) == 0) this->profile_lock_type_ = TAO_THREAD_LOCK; else if (ACE_OS::strcasecmp (name, - "null") == 0) + ACE_LIB_TEXT("null")) == 0) this->profile_lock_type_ = TAO_NULL_LOCK; } } else if (ACE_OS::strcasecmp (argv[curarg], - "-ORBClientConnectionHandler") == 0) + ACE_LIB_TEXT("-ORBClientConnectionHandler")) == 0) { curarg++; if (curarg < argc) { - char *name = argv[curarg]; + ACE_TCHAR* name = argv[curarg]; if (ACE_OS::strcasecmp (name, - "MT") == 0) + ACE_LIB_TEXT("MT")) == 0) this->wait_strategy_ = TAO_WAIT_ON_LEADER_FOLLOWER; else if (ACE_OS::strcasecmp (name, - "ST") == 0) + ACE_LIB_TEXT("ST")) == 0) this->wait_strategy_ = TAO_WAIT_ON_REACTOR; else if (ACE_OS::strcasecmp (name, - "RW") == 0) + ACE_LIB_TEXT("RW")) == 0) this->wait_strategy_ = TAO_WAIT_ON_READ; else - this->report_option_value_error ("-ORBClientConnectionHandler", name); + this->report_option_value_error (ACE_LIB_TEXT("-ORBClientConnectionHandler"), name); } } else if (ACE_OS::strcmp (argv[curarg], - "-ORBTransportMuxStrategy") == 0) + ACE_LIB_TEXT("-ORBTransportMuxStrategy")) == 0) { curarg++; if (curarg < argc) { - char *name = argv[curarg]; + ACE_TCHAR* name = argv[curarg]; if (ACE_OS::strcasecmp (name, - "MUXED") == 0) + ACE_LIB_TEXT("MUXED")) == 0) this->transport_mux_strategy_ = TAO_MUXED_TMS; else if (ACE_OS::strcasecmp (name, - "EXCLUSIVE") == 0) + ACE_LIB_TEXT("EXCLUSIVE")) == 0) this->transport_mux_strategy_ = TAO_EXCLUSIVE_TMS; else - this->report_option_value_error ("-ORBTransportMuxStrategy", name); + this->report_option_value_error (ACE_LIB_TEXT("-ORBTransportMuxStrategy"), name); } } - else if (ACE_OS::strncmp (argv[curarg], "-ORB", 4) == 0) + else if (ACE_OS::strncmp (argv[curarg], ACE_LIB_TEXT("-ORB"), 4) == 0) { // Can we assume there is an argument after the option? // curarg++; @@ -238,8 +238,8 @@ TAO_Default_Client_Strategy_Factory::create_ft_service_retention_id_lock (void) void TAO_Default_Client_Strategy_Factory::report_option_value_error ( - const char* option_name, - const char* option_value) + const ACE_TCHAR* option_name, + const ACE_TCHAR* option_value) { ACE_DEBUG((LM_DEBUG, ACE_TEXT ("Client_Strategy_Factory - unknown argument") |