summaryrefslogtreecommitdiff
path: root/ace/Arg_Shifter.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/Arg_Shifter.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Arg_Shifter.h')
-rw-r--r--ace/Arg_Shifter.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/ace/Arg_Shifter.h b/ace/Arg_Shifter.h
index 49675d227a4..7209b67eab8 100644
--- a/ace/Arg_Shifter.h
+++ b/ace/Arg_Shifter.h
@@ -3,15 +3,15 @@
// ========================================================================
//
-// = LIBRARY
+// = LIBRARY
// ace
-//
-// = FILENAME
+//
+// = FILENAME
// Arg_Shifter.h
-//
-// = AUTHOR
-// Seth Widoff
-//
+//
+// = AUTHOR
+// Seth Widoff
+//
// ========================================================================
#ifndef ACE_ARG_SHIFTER_H
@@ -44,10 +44,10 @@ public:
// indices to the end of the vector, forbidding iteration. Following
// iteration over argv, the argc value will contain the number of
// unconsumed arguments.
-
+
~ACE_Arg_Shifter (void);
// Destructor.
-
+
char *get_current (void) const;
// Get the current head of the vector.
@@ -65,24 +65,24 @@ public:
int is_option_next (void) const;
// Returns 1 if there's a next item in the vector and it begins with
// '-'.
-
+
int is_parameter_next (void) const;
// Returns 1 if there's a next item in the vector and it doesn't
// begin with '-'.
-
+
int num_ignored_args (void) const;
// Returns the number of irrelevant args seen.
-
+
private:
int &argc_;
// The size of the argument vector.
int total_size_;
// The size of argv_.
-
+
char **temp_;
// The temporary array over which we traverse.
-
+
char **argv_;
// The array in which the arguments are reordered.
@@ -92,10 +92,10 @@ private:
int back_;
// The index of <argv_> in which we'll stick the next unknown
// argument.
-
+
int front_;
// The index of <argv_> in which we'll stick the next known
- // argument.
+ // argument.
};
#endif /* ACE_ARG_SHIFTER_H */