diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-11-09 23:00:26 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-11-09 23:00:26 +0000 |
commit | 5ee89b73d0c371a152cb4d6ba5d169b7d6bd53c4 (patch) | |
tree | 3034ef53615811a7dfe86669e14a145d4305430c /ace/Arg_Shifter.h | |
parent | 2c76a46e5e7ec37c37a590f2b67b67b6cdd30ad2 (diff) | |
download | ATCD-5ee89b73d0c371a152cb4d6ba5d169b7d6bd53c4.tar.gz |
ChangeLogTag:Fri Nov 9 07:42:41 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace/Arg_Shifter.h')
-rw-r--r-- | ace/Arg_Shifter.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/ace/Arg_Shifter.h b/ace/Arg_Shifter.h index 961541aa5d2..b8d8372a553 100644 --- a/ace/Arg_Shifter.h +++ b/ace/Arg_Shifter.h @@ -6,18 +6,16 @@ * * $Id$ * - * @author Seth Widoff + * @author Seth Widoff */ //============================================================================= - #ifndef ACE_ARG_SHIFTER_H #define ACE_ARG_SHIFTER_H #include "ace/pre.h" #include "ace/OS.h" - /** * @class ACE_Arg_Shifter * @@ -60,14 +58,14 @@ public: * vector transparently. */ ACE_Arg_Shifter (int& argc, - ACE_TCHAR **argv, - ACE_TCHAR **temp = 0); + const ACE_TCHAR **argv, + const ACE_TCHAR **temp = 0); /// Destructor. ~ACE_Arg_Shifter (void); /// Get the current head of the vector. - ACE_TCHAR *get_current (void) const; + const ACE_TCHAR *get_current (void) const; /** * If the <flag> matches the current_arg of arg shifter @@ -101,7 +99,7 @@ public: * together '-foobarflagVALUE', the flag is NOT consumed * and the cur arg is left pointing to the entire flag/value pair */ - ACE_TCHAR *get_the_parameter (const ACE_TCHAR* flag); + const ACE_TCHAR *get_the_parameter (const ACE_TCHAR* flag); /** * Check if the current argument matches (case insensitive) <flag> @@ -164,10 +162,10 @@ private: int total_size_; /// The temporary array over which we traverse. - ACE_TCHAR **temp_; + const ACE_TCHAR **temp_; /// The array in which the arguments are reordered. - ACE_TCHAR **argv_; + const ACE_TCHAR **argv_; /// The element in <temp_> we're currently examining. int current_index_; |