summaryrefslogtreecommitdiff
path: root/ace/adapter/ace/ARGV.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/adapter/ace/ARGV.h')
-rw-r--r--ace/adapter/ace/ARGV.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/ace/adapter/ace/ARGV.h b/ace/adapter/ace/ARGV.h
new file mode 100644
index 00000000000..487c4031360
--- /dev/null
+++ b/ace/adapter/ace/ARGV.h
@@ -0,0 +1,35 @@
+// $Id$
+
+#ifndef ACE_ADAPTER_ARGV_H
+#define ACE_ADAPTER_ARGV_H
+#include "ace/pre.h"
+
+#include "../../ARGV.h"
+
+class ACE_ARGV_W : public ACE_ARGV
+{
+public:
+ ACE_ARGV_W (const wchar_t buf[], int substitute_env_args = 1)
+ : ACE_ARGV (ACE_TEXT_WCHAR_TO_CHAR (buf), substitute_env_args) {}
+
+ // @@ Implement: ACE_ARGV_W (wchar_t *argv[], int substitute_env_args = 1)
+
+ // @@ Implement: ACE_ARGV_W (wchar_t *first_argv[], wchar_t *second_argv[], int substitute_env_args =1)
+
+ ~ACE_ARGV_W (void) {}
+
+ const wchar_t *operator[] (size_t index)
+ { return ACE::strnew (ACE_TEXT_CHAR_TO_WCHAR (ACE_ARGV::operator[] (index))); }
+
+ // @@ Implement: wchar_t **argv (void);
+
+ // @@ Implement: const wchar_t *buf (void);
+
+ int add (const wchar_t *next_arg)
+ { return ACE_ARGV::add (ACE_TEXT_WCHAR_TO_CHAR (next_arg)); };
+
+ // @@ Implement: int add (wchar_t *argv[]);
+};
+
+#include "ace/post.h"
+#endif /* ACE_ADAPTER_ARGV_H */