diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 0902828269fb1a42ed23c208fd61bac76aaddc13 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/ARGV.h | |
parent | e7788cff873f30e65d44d38db7cfafc175f748a3 (diff) | |
download | ATCD-0902828269fb1a42ed23c208fd61bac76aaddc13.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/ARGV.h')
-rw-r--r-- | ace/ARGV.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/ace/ARGV.h b/ace/ARGV.h index 73db55ddd99..9edebe6c1e7 100644 --- a/ace/ARGV.h +++ b/ace/ARGV.h @@ -5,25 +5,26 @@ // // = LIBRARY // ace -// +// // = FILENAME // ARGV.h // // = AUTHOR // Doug Schmidt, Everett Anderson -// +// // ============================================================================ #ifndef ACE_ARGUMENT_VECTOR_H #define ACE_ARGUMENT_VECTOR_H #include "ace/ACE.h" -#include "ace/Containers.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/Containers.h" + class ACE_Export ACE_ARGV { // = TITLE @@ -62,7 +63,7 @@ public: // = Accessor arguments. const ASYS_TCHAR *operator[] (size_t index); - // Returns the <index>th string in the ARGV array. + // Returns the <index>th string in the ARGV array. ASYS_TCHAR **argv (void); // Returns the <argv> array. Caller should not delete this memory @@ -71,7 +72,7 @@ public: // saved to the queue. size_t argc (void) const; - // Returns <argc>. + // Returns <argc>. const ASYS_TCHAR *buf (void); // Returns the <buf>. Caller should not delete this memory since @@ -90,13 +91,13 @@ public: // What state is this ACE_ARGV in? // These are the states possible via the different constructors. - enum States + enum States { - TO_STRING = 1, + TO_STRING = 1, // ACE_ARGV converts buf[] to ASYS_TCHAR *argv[] - TO_PTR_ARRAY = 2, + TO_PTR_ARRAY = 2, // ACE_ARGV converts ASYS_TCHAR *argv[] to buf[] - ITERATIVE = 3 + ITERATIVE = 3 // Builds buf[] or ASYS_TCHAR *argv[] iteratively with add() }; @@ -109,7 +110,7 @@ private: // Converts buf_ into the ASYS_TCHAR *argv[] format. int argv_to_string (ASYS_TCHAR **argv, ASYS_TCHAR *&buf); - // Returns the string created from argv in buf and + // Returns the string created from argv in buf and // returns the number of arguments. int substitute_env_args_; @@ -119,10 +120,10 @@ private: // Current state marker. size_t argc_; - // Number of arguments in the ARGV array. + // Number of arguments in the ARGV array. ASYS_TCHAR **argv_; - // The array of string arguments. + // The array of string arguments. ASYS_TCHAR *buf_; // Buffer containing the <argv> contents. |