summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h4
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Application_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command.cpp2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command.h7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command_Builder.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Driver.cpp20
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Driver.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Filter_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Name.cpp45
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Name.h34
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h4
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Options_Parser.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer.cpp3
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp1
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp14
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.h8
37 files changed, 172 insertions, 140 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
index 86b477c1bba..757baa0e912 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
@@ -34,7 +34,7 @@ TAO_Notify_Tests_Activation_Manager::~TAO_Notify_Tests_Activation_Manager ()
}
int
-TAO_Notify_Tests_Activation_Manager::ior_output_file (const ACE_TCHAR *file_name)
+TAO_Notify_Tests_Activation_Manager::ior_output_file (const char *file_name)
{
this->ior_output_file_ = ACE_OS::fopen (file_name, ACE_TEXT("w"));
@@ -45,7 +45,7 @@ TAO_Notify_Tests_Activation_Manager::ior_output_file (const ACE_TCHAR *file_name
}
int
-TAO_Notify_Tests_Activation_Manager::ior_input_file (const ACE_TCHAR *file_name)
+TAO_Notify_Tests_Activation_Manager::ior_input_file (const char *file_name)
{
this->ior_input_file_ = file_name;
return 0;
@@ -204,7 +204,7 @@ TAO_Notify_Tests_Activation_Manager::dump_stats (int dump_samples)
if (sup_iter.next (sup_entry) != 0)
{
supplier = sup_entry->int_id_;
- supplier->dump_stats (msg, dump_samples);
+ supplier->dump_stats (ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
}
}
@@ -219,7 +219,7 @@ TAO_Notify_Tests_Activation_Manager::dump_stats (int dump_samples)
if (cons_iter.next (cons_entry) != 0)
{
consumer = cons_entry->int_id_;
- consumer->dump_stats (msg, dump_samples);
+ consumer->dump_stats (ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
}
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
index 838516b3d64..b52176dbd22 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
@@ -91,10 +91,10 @@ public:
void dump_stats (int dump_samples);
// Returns 0 if the file could be opened for write.
- int ior_output_file (const ACE_TCHAR *file_name);
+ int ior_output_file (const char *file_name);
// Returns 1 if the file could be opened for read.
- int ior_input_file (const ACE_TCHAR *file_name);
+ int ior_input_file (const char *file_name);
void write_ior (ACE_ENV_SINGLE_ARG_DECL);
void wait_for_start_signal (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
index 5172ae18620..11f24ede767 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
@@ -11,6 +11,8 @@ ACE_RCSID(lib, TAO_Application_Command, "$Id$")
#include "Driver_Base.h"
#include "Priority_Mapping.h"
+#include "ace/Arg_Shifter.h"
+
TAO_Notify_Tests_Application_Command::TAO_Notify_Tests_Application_Command (void)
: dump_samples_ (0)
{
@@ -20,20 +22,20 @@ TAO_Notify_Tests_Application_Command::~TAO_Notify_Tests_Application_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Application_Command::get_name (void)
{
return TAO_Notify_Tests_Application_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Application_Command::name (void)
{
return TAO_Notify_Tests_Name::application_command;
}
void
-TAO_Notify_Tests_Application_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Application_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Application_Command.h b/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
index ff267fc37a3..89902c795e6 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
@@ -40,14 +40,14 @@ public:
~TAO_Notify_Tests_Application_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Get the command name.
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
#ifdef HPUX_11
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Command.cpp
index 4e63d4ba284..c77c5c9655b 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Command.cpp
@@ -19,7 +19,7 @@ TAO_Notify_Tests_Command::~TAO_Notify_Tests_Command ()
}
void
-TAO_Notify_Tests_Command::init (ACE_Arg_Shifter& /*arg_shifter*/)
+TAO_Notify_Tests_Command::init (ACE_TArg_Shifter< ACE_TCHAR >& /*arg_shifter*/)
{
// default: do nothing.
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command.h b/TAO/orbsvcs/tests/Notify/lib/Command.h
index 41f23995f0b..91c9e0c2c33 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Command.h
@@ -21,6 +21,7 @@
#include "tao/orbconf.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/CORBA_macros.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -47,16 +48,16 @@ public:
virtual ~TAO_Notify_Tests_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< ACE_TCHAR >& arg_shifter);
/// Implement command execution.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL) = 0;
/// Return the name of this command.
- virtual const char* get_name (void)= 0;
+ virtual const ACE_TCHAR* get_name (void)= 0;
///= Each derived type must also implement the following signature:
- // static const char* name (void);
+ // static const ACE_TCHAR* name (void);
protected:
/// Next command after this one.
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
index e95b8ed81b2..0a412cfe89d 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
@@ -3,6 +3,7 @@
#include "Command_Builder.h"
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Command.h"
#include "Command_Factory.h"
#include "Name.h"
@@ -19,11 +20,11 @@ TAO_Notify_Tests_Command_Builder::~TAO_Notify_Tests_Command_Builder ()
}
int
-TAO_Notify_Tests_Command_Builder::init (int argc, char *argv[])
+TAO_Notify_Tests_Command_Builder::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< ACE_TCHAR > arg_shifter (argc, argv);
- ACE_CString current_arg;
+ ACE_TString current_arg;
TAO_Notify_Tests_Command_Factory* factory = 0;
if (arg_shifter.is_anything_left ())
@@ -65,7 +66,7 @@ TAO_Notify_Tests_Command_Builder::fini (void)
}
void
-TAO_Notify_Tests_Command_Builder::_register (ACE_CString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory)
+TAO_Notify_Tests_Command_Builder::_register (ACE_TString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory)
{
if (this->factory_map_.bind (command_factory_name, command_factory) == -1)
ACE_DEBUG ((LM_DEBUG, "Failed to register command factory for %s\n", command_factory_name.c_str ()));
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
index 7ca63765dbe..a29bd93e7d3 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
@@ -46,11 +46,11 @@ public:
~TAO_Notify_Tests_Command_Builder ();
/// = Service_Object virtual method overloads.
- virtual int init (int argc, char *argv[]);
+ virtual int init (int argc, ACE_TCHAR *argv[]);
virtual int fini (void);
/// Register the factory against the name of the factory.
- void _register (ACE_CString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory);
+ void _register (ACE_TString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory);
/// Execute the <start_command_>.
void execute (ACE_ENV_SINGLE_ARG_DECL);
@@ -63,7 +63,7 @@ protected:
TAO_Notify_Tests_Command* last_command_;
/// The factory map.
- ACE_Hash_Map_Manager <ACE_CString, TAO_Notify_Tests_Command_Factory*, TAO_SYNCH_MUTEX> factory_map_;
+ ACE_Hash_Map_Manager <ACE_TString, TAO_Notify_Tests_Command_Factory*, TAO_SYNCH_MUTEX> factory_map_;
};
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_NOTIFY_TEST, TAO_Notify_Tests_Command_Builder)
diff --git a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
index 2965bc0094c..2b7e3020db7 100644
--- a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
@@ -17,13 +17,13 @@ TAO_Notify_Tests_ConsumerAdmin_Command::~TAO_Notify_Tests_ConsumerAdmin_Command
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_ConsumerAdmin_Command::get_name (void)
{
return TAO_Notify_Tests_ConsumerAdmin_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_ConsumerAdmin_Command::name (void)
{
return TAO_Notify_Tests_Name::consumer_admin_command;
@@ -96,7 +96,7 @@ TAO_Notify_Tests_ConsumerAdmin_Command::handle_status (ACE_ENV_SINGLE_ARG_DECL_N
}
void
-TAO_Notify_Tests_ConsumerAdmin_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_ConsumerAdmin_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
index a94146e47bc..dcc6b8aeea2 100644
--- a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_ConsumerAdmin_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
index 8985aa6f772..6fb6f16accf 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
@@ -186,13 +186,13 @@ TAO_Notify_Tests_Driver::~TAO_Notify_Tests_Driver ()
int
TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Timeout")))) // -Timeout timeout_period_S
+ if ((current_arg = arg_shifter.get_the_parameter ("-Timeout"))) // -Timeout timeout_period_S
{
if (current_arg != 0)
{
@@ -201,7 +201,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // -IORoutput file_name
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORoutput"))) // -IORoutput file_name
{
if (this->activation_manager_->ior_output_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -210,7 +210,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORinput")))) // -IORinput file_name
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORinput"))) // -IORinput file_name
{
if (this->activation_manager_->ior_input_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -235,17 +235,17 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
}
int
-TAO_Notify_Tests_Driver::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
+TAO_Notify_Tests_Driver::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
- ACE_Argv_Type_Converter command_line(argc, argv);
+ ACE_Argv_Type_Converter convert(argc, argv);
- this->orb_ = CORBA::ORB_init (command_line.get_argc(),
- command_line.get_ASCII_argv(),
+ this->orb_ = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.h b/TAO/orbsvcs/tests/Notify/lib/Driver.h
index 610e6b02e79..f909a8ed2a0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Driver.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Driver.h
@@ -107,7 +107,7 @@ public:
~TAO_Notify_Tests_Driver ();
/// Init
- int init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL);
+ int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
/// Execute the commands.
void run (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
index 519fee9fc45..76842ecce19 100644
--- a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
@@ -20,20 +20,20 @@ TAO_Notify_Tests_EventChannel_Command::~TAO_Notify_Tests_EventChannel_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_EventChannel_Command::get_name (void)
{
return TAO_Notify_Tests_EventChannel_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_EventChannel_Command::name (void)
{
return TAO_Notify_Tests_Name::event_channel_command;
}
void
-TAO_Notify_Tests_EventChannel_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_EventChannel_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
index 35a2baa4bb0..368b1963b0c 100644
--- a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
@@ -44,14 +44,14 @@ public:
virtual ~TAO_Notify_Tests_EventChannel_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
///= Data Members
diff --git a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
index 2bb7bb716b4..4832672fe07 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
@@ -16,20 +16,20 @@ TAO_Notify_Tests_Filter_Command::~TAO_Notify_Tests_Filter_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Filter_Command::get_name (void)
{
return TAO_Notify_Tests_Filter_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Filter_Command::name (void)
{
return TAO_Notify_Tests_Name::filter_command;
}
void
-TAO_Notify_Tests_Filter_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Filter_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
index 2678b6c4437..24d1b9dfb43 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_Filter_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Name.cpp b/TAO/orbsvcs/tests/Notify/lib/Name.cpp
index 87e0c004674..532fa99954a 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Name.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Name.cpp
@@ -5,33 +5,36 @@
ACE_RCSID(lib, TAO_Name, "$Id$")
#define TAO_Notify_Tests_DECLARE_NAME(target, name) \
-const char* const TAO_Notify_Tests_Name::target = ACE_TEXT (name);
+const ACE_TCHAR* const TAO_Notify_Tests_Name::target = name;
-TAO_Notify_Tests_DECLARE_NAME (command_builder,"Command_Builder")
-TAO_Notify_Tests_DECLARE_NAME (root_poa,"RootPOA")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_factory,"NotifyEventChannelFactory")
-TAO_Notify_Tests_DECLARE_NAME (naming_service,"NameService")
+#define TAO_Notify_Tests_DECLARE_NAME_A(target, name) \
+const char* const TAO_Notify_Tests_Name::target = name;
-TAO_Notify_Tests_DECLARE_NAME (application_command,"Application")
-TAO_Notify_Tests_DECLARE_NAME (application_command_factory,"Application_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (command_builder, ACE_TEXT("Command_Builder"))
+TAO_Notify_Tests_DECLARE_NAME_A (root_poa, "RootPOA")
+TAO_Notify_Tests_DECLARE_NAME_A (event_channel_factory, "NotifyEventChannelFactory")
+TAO_Notify_Tests_DECLARE_NAME_A (naming_service, "NameService")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_command,"EventChannel")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_command_factory,"EventChannel_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (application_command, ACE_TEXT("Application"))
+TAO_Notify_Tests_DECLARE_NAME (application_command_factory, ACE_TEXT("Application_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command,"ConsumerAdmin")
-TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command_factory,"ConsumerAdmin_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (event_channel_command, ACE_TEXT("EventChannel"))
+TAO_Notify_Tests_DECLARE_NAME (event_channel_command_factory, ACE_TEXT("EventChannel_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command,"SupplierAdmin")
-TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command_factory,"SupplierAdmin_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command, ACE_TEXT("ConsumerAdmin"))
+TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command_factory, ACE_TEXT("ConsumerAdmin_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command, "PeriodicSupplier")
-TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command_factory, "PeriodicSupplier_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command, ACE_TEXT("SupplierAdmin"))
+TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command_factory, ACE_TEXT("SupplierAdmin_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command, "PeriodicConsumer")
-TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command_factory, "PeriodicConsumer_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command, ACE_TEXT("PeriodicSupplier"))
+TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command_factory, ACE_TEXT("PeriodicSupplier_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (poa_command, "POA")
-TAO_Notify_Tests_DECLARE_NAME (poa_command_factory, "POA_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command, ACE_TEXT("PeriodicConsumer"))
+TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command_factory, ACE_TEXT("PeriodicConsumer_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (filter_command, "Filter")
-TAO_Notify_Tests_DECLARE_NAME (filter_command_factory, "Filter_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (poa_command, ACE_TEXT("POA"))
+TAO_Notify_Tests_DECLARE_NAME (poa_command_factory, ACE_TEXT("POA_Command_Factory"))
+
+TAO_Notify_Tests_DECLARE_NAME (filter_command, ACE_TEXT("Filter"))
+TAO_Notify_Tests_DECLARE_NAME (filter_command_factory, ACE_TEXT("Filter_Command_Factory"))
diff --git a/TAO/orbsvcs/tests/Notify/lib/Name.h b/TAO/orbsvcs/tests/Notify/lib/Name.h
index 602f3d1e6de..188eb6113c0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Name.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Name.h
@@ -32,31 +32,31 @@ public:
static const char* const event_channel_factory;
static const char* const naming_service;
- static const char* const command_builder;
+ static const ACE_TCHAR* const command_builder;
- static const char* const application_command_factory;
- static const char* const application_command;
+ static const ACE_TCHAR* const application_command_factory;
+ static const ACE_TCHAR* const application_command;
- static const char* const event_channel_command_factory;
- static const char* const event_channel_command;
+ static const ACE_TCHAR* const event_channel_command_factory;
+ static const ACE_TCHAR* const event_channel_command;
- static const char* const supplier_admin_command_factory;
- static const char* const supplier_admin_command;
+ static const ACE_TCHAR* const supplier_admin_command_factory;
+ static const ACE_TCHAR* const supplier_admin_command;
- static const char* const consumer_admin_command_factory;
- static const char* const consumer_admin_command;
+ static const ACE_TCHAR* const consumer_admin_command_factory;
+ static const ACE_TCHAR* const consumer_admin_command;
- static const char* const periodic_supplier_command;
- static const char* const periodic_supplier_command_factory;
+ static const ACE_TCHAR* const periodic_supplier_command;
+ static const ACE_TCHAR* const periodic_supplier_command_factory;
- static const char* const periodic_consumer_command;
- static const char* const periodic_consumer_command_factory;
+ static const ACE_TCHAR* const periodic_consumer_command;
+ static const ACE_TCHAR* const periodic_consumer_command_factory;
- static const char* const poa_command;
- static const char* const poa_command_factory;
+ static const ACE_TCHAR* const poa_command;
+ static const ACE_TCHAR* const poa_command_factory;
- static const char* const filter_command;
- static const char* const filter_command_factory;
+ static const ACE_TCHAR* const filter_command;
+ static const ACE_TCHAR* const filter_command_factory;
};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
index cd6a689acfa..30ac0894ea3 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
@@ -34,7 +34,7 @@ Notify_Test_Client::~Notify_Test_Client ()
}
int
-Notify_Test_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+Notify_Test_Client::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
int status = this->init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -57,11 +57,10 @@ Notify_Test_Client::parse_args (int /*argc*/, char** /*argv*/)
int
Notify_Test_Client::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
index 39bbed208fe..493d4144c7e 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
@@ -37,7 +37,7 @@ public:
Notify_Test_Client (void);
virtual ~Notify_Test_Client ();
- virtual int init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ virtual int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// starts the orb and resolves the notify factory via a naming service.
virtual int parse_args (int argc, char* argv[]);
@@ -76,7 +76,7 @@ public:
protected:
int init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initializes the ORB.
diff --git a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
index 2685d1bfd5b..847cfaba864 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
@@ -21,9 +21,9 @@ TAO_Notify_Tests_Options_Parser::~TAO_Notify_Tests_Options_Parser ()
}
void
-TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_TArg_Shifter< char >& arg_shifter)
{
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -52,9 +52,9 @@ TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added,
}
void
-TAO_Notify_Tests_Options_Parser::execute (CosNotification::QoSProperties& qos, ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Options_Parser::execute (CosNotification::QoSProperties& qos, ACE_TArg_Shifter< char >& arg_shifter)
{
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
int default_priority = ACE_DEFAULT_THREAD_PRIORITY;
if (arg_shifter.cur_arg_strncasecmp ("-ThreadPool") == 0) // -ThreadPool [-Threads static_threads] [-Priority default_priority]
diff --git a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
index cecfce11495..7bbc3c3588c 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
@@ -21,8 +21,10 @@
#include "orbsvcs/CosNotificationC.h"
+#include "ace/Arg_Shifter.h"
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
+//class ACE_TArg_Shifter< char >;
ACE_END_VERSIONED_NAMESPACE_DECL
/**
@@ -41,10 +43,10 @@ public:
~TAO_Notify_Tests_Options_Parser ();
/// Populates <qos> with options apecified in <arg_shifter>
- void execute (CosNotification::QoSProperties& qos, ACE_Arg_Shifter& arg_shifter);
+ void execute (CosNotification::QoSProperties& qos, ACE_TArg_Shifter< char >& arg_shifter);
/// Populates <added> and <removed> with options apecified in <arg_shifter>
- void execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_Arg_Shifter& arg_shifter);
+ void execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_TArg_Shifter< char >& arg_shifter);
};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer.cpp b/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
index 293218f1ae5..0c2f8934212 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
@@ -11,6 +11,7 @@ ACE_RCSID (lib,
"$Id$")
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "Name.h"
#include "LookupManager.h"
#include "Options_Parser.h"
@@ -33,7 +34,7 @@ TAO_Notify_Tests_Peer::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL_NOT_U
}
int
-TAO_Notify_Tests_Peer::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Peer::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer.h b/TAO/orbsvcs/tests/Notify/lib/Peer.h
index b1f93a4b815..d9a3c8185da 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer.h
@@ -23,8 +23,10 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/SString.h"
+#include "ace/Arg_Shifter.h"
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
+//template <typename> ACE_TArg_Shifter;
ACE_END_VERSIONED_NAMESPACE_DECL
/**
@@ -46,7 +48,7 @@ public:
void init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL_NOT_USED);
/// Init this object.
- virtual int init_state (ACE_Arg_Shifter& arg_shifter);
+ virtual int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// Set POA
void set_poa (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp b/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
index 556d11fb0f0..c62df60ac6b 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
@@ -10,6 +10,7 @@ ACE_RCSID (Notify,
"$Id$")
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "Name.h"
#include "LookupManager.h"
#include "Options_Parser.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
index a718deb73bf..e524f2537ad 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
@@ -3,6 +3,7 @@
#include "Periodic_Consumer.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Task.h"
#include "tao/debug.h"
@@ -41,13 +42,13 @@ TAO_Notify_Tests_Periodic_Consumer::task_callback (TAO_Notify_Tests_Task_Callbac
}
int
-TAO_Notify_Tests_Periodic_Consumer::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Consumer::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
// First, let the base class look for options.
if (TAO_Notify_Tests_StructuredPushConsumer::init_state (arg_shifter) == -1)
return -1;
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -257,7 +258,7 @@ TAO_Notify_Tests_Periodic_Consumer::push_structured_event (const CosNotification
}
void
-TAO_Notify_Tests_Periodic_Consumer::dump_stats (ACE_TCHAR* msg, int dump_samples)
+TAO_Notify_Tests_Periodic_Consumer::dump_stats (const ACE_TCHAR* msg, int dump_samples)
{
char buf[BUFSIZ];
ACE_OS::sprintf (buf, "%s.dat", this->name_.c_str ());
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
index de06aa31135..8858c155029 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
@@ -22,9 +22,11 @@
#include "Task_Stats.h"
#include "Notify_StructuredPushConsumer.h"
+#include "ace/Arg_Shifter.h"
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-class ACE_Arg_Shifter;
+//class ACE_TArg_Shifter< char >;
ACE_END_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Tests_Task_Callback;
@@ -48,10 +50,10 @@ public:
void task_callback(TAO_Notify_Tests_Task_Callback* client);
/// Init the state of this object.
- virtual int init_state (ACE_Arg_Shifter& arg_shifter);
+ virtual int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// dump stats
- void dump_stats (ACE_TCHAR* msg, int dump_samples);
+ void dump_stats (const ACE_TCHAR* msg, int dump_samples);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
index cfda2e788f8..12871ea3eb0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
@@ -23,20 +23,20 @@ TAO_Notify_Tests_Periodic_Consumer_Command::~TAO_Notify_Tests_Periodic_Consumer_
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Consumer_Command::get_name (void)
{
return TAO_Notify_Tests_Periodic_Consumer_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Consumer_Command::name (void)
{
return TAO_Notify_Tests_Name::periodic_consumer_command;
}
void
-TAO_Notify_Tests_Periodic_Consumer_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Consumer_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
index d258c7e2e8a..f61cdcaf201 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
@@ -41,14 +41,14 @@ public:
~TAO_Notify_Tests_Periodic_Consumer_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
///= Data Members
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
index b2aea30f498..901964d7b1d 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
@@ -3,6 +3,7 @@
#include "Periodic_Supplier.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Barrier.h"
#include "ace/OS_NS_unistd.h"
@@ -45,13 +46,13 @@ TAO_Notify_Tests_Periodic_Supplier::task_callback(TAO_Notify_Tests_Task_Callback
}
int
-TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
// First, let the base class look for options.
if (TAO_Notify_Tests_StructuredPushSupplier::init_state (arg_shifter) == -1)
return -1;
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -340,7 +341,7 @@ TAO_Notify_Tests_Periodic_Supplier::svc (void)
}
void
-TAO_Notify_Tests_Periodic_Supplier::dump_stats (ACE_TCHAR* msg, int dump_samples)
+TAO_Notify_Tests_Periodic_Supplier::dump_stats (const ACE_TCHAR* msg, int dump_samples)
{
char buf[BUFSIZ];
ACE_OS::sprintf (buf, "%s.dat", this->name_.c_str ());
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
index 969f07cb4ec..906197cf38f 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
@@ -25,9 +25,11 @@
#include "ace/Task.h"
#include "ace/Barrier.h"
+#include "ace/Arg_Shifter.h"
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-class ACE_Arg_Shifter;
+//class ACE_TArg_Shifter< char >;
ACE_END_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Tests_Task_Callback;
@@ -51,7 +53,7 @@ public:
void task_callback(TAO_Notify_Tests_Task_Callback* client);
/// Init the state of this object.
- int init_state (ACE_Arg_Shifter& arg_shifter);
+ int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// Activate this task, synch on the given barrier.
virtual int activate_task (ACE_Barrier* barrier);
@@ -60,7 +62,7 @@ public:
virtual int svc (void);
/// Dump stats.
- void dump_stats (ACE_TCHAR* msg, int dump_samples);
+ void dump_stats (const ACE_TCHAR* msg, int dump_samples);
/// Get the name of the proxy
const char* proxy_name (void);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
index 9cdfaccbb51..f771ee167ba 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
@@ -22,20 +22,20 @@ TAO_Notify_Tests_Periodic_Supplier_Command::~TAO_Notify_Tests_Periodic_Supplier_
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Supplier_Command::get_name (void)
{
return TAO_Notify_Tests_Periodic_Supplier_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Supplier_Command::name (void)
{
return TAO_Notify_Tests_Name::periodic_supplier_command;
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Supplier_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
index 726d7cd0ddd..c30ba056992 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
@@ -41,14 +41,14 @@ public:
~TAO_Notify_Tests_Periodic_Supplier_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
index 5adaa65c92c..c2a47b86e34 100644
--- a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
@@ -17,20 +17,20 @@ TAO_Notify_Tests_SupplierAdmin_Command::~TAO_Notify_Tests_SupplierAdmin_Command
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_SupplierAdmin_Command::get_name (void)
{
return TAO_Notify_Tests_SupplierAdmin_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_SupplierAdmin_Command::name (void)
{
return TAO_Notify_Tests_Name::supplier_admin_command;
}
void
-TAO_Notify_Tests_SupplierAdmin_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_SupplierAdmin_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
index fbed3172551..ed73819a9b0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_SupplierAdmin_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
index 3669f3987a1..7d2ae5888cd 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
@@ -55,10 +55,20 @@ Task_Stats::end_time (ACE_UINT64 time)
end_time_ = time;
}
+void Task_Stats::dump_samples (const char *file_name, const char *msg, int dump_samples)
+{
+ dump_samples_i(ACE_TEXT_TO_TCHAR_IN(file_name), ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
+}
+
+void Task_Stats::dump_samples (const wchar_t *file_name, const wchar_t *msg, int dump_samples)
+{
+ dump_samples_i(ACE_TEXT_TO_TCHAR_IN(file_name), ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
+}
+
void
-Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples)
+Task_Stats::dump_samples_i (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples)
{
- FILE* output_file = ACE_OS::fopen (file_name, "w");
+ FILE* output_file = ACE_OS::fopen (file_name, ACE_TEXT("w"));
// first dump what the caller has to say.
ACE_OS::fprintf (output_file, "%s\n",msg);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
index cc4d7190887..6de23f231f4 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
@@ -70,9 +70,13 @@ class TAO_NOTIFY_TEST_Export Task_Stats
/// Record a sample
int sample (ACE_UINT64 inv_start_time, ACE_UINT64 inv_end_time);
- void dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples);
+ void dump_samples (const char *file_name, const char *msg, int dump_samples);
+
+ void dump_samples (const wchar_t *file_name, const wchar_t *msg, int dump_samples);
+
+ private:
+ void dump_samples_i (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples);
- protected:
/// Base and end times
ACE_UINT64 base_time_;
ACE_UINT64 end_time_;