From 0f006d4b94f22e64e0b8b8a32b895deff1ba54b0 Mon Sep 17 00:00:00 2001 From: mes5k Date: Fri, 22 Oct 2004 01:58:43 +0000 Subject: [PATCH] minor tweaks --- docs/manual.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index 2804725..cee0af9 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -281,8 +281,8 @@ special cases of ValueArgs and are described below. All ValueArgs are templatized** and will attempt to parse the string its flag matches on the command line as the type it is -specified as. ValueArg< int > will attempt to parse an -int, ValueArg< float > will attempt to parse a float, +specified as. ValueArg<int> will attempt to parse an +int, ValueArg<float> will attempt to parse a float, etc. If operator>> for the specified type doesn't recognize the string on the command line as its defined type, then an exception will be thrown. @@ -292,7 +292,7 @@ an exception will be thrown. TCLAP is implemented entirely in header files which means you only need to include CmdLine.h to use the library.
-        #include < tclap/CmdLine.h >
+        #include <tclap/CmdLine.h>
 
You'll need to make sure that your compiler can see the header files. If you do the usual "make install" then your compiler should @@ -363,7 +363,7 @@ a single value is returned. A MultiArg is declared much like a ValueArg:
 
-                MultiArg < int > itest("i", "intTest", "multi int test", false,"int" );
+                MultiArg <int> itest("i", "intTest", "multi int test", false,"int" );
                 cmd.add( itest );
 
 
@@ -384,7 +384,7 @@ the CmdLine object to treat them accordingly. The code would look like this:
 
-                UnlabeledValueArg < float >  nolabel( "name", "unlabeled test", 3.14,
+                UnlabeledValueArg <float>  nolabel( "name", "unlabeled test", 3.14,
                                                   "nameString"  );
                 cmd.add( nolabel );
 
@@ -432,11 +432,11 @@ CmdLine!. Here is what a declaration looks like:
                 //
                 // UnlabeledMultiArg must be the LAST argument added!
                 //
-                UnlabeledMultiArg < string > multi("file names");
+                UnlabeledMultiArg <string> multi("file names");
                 cmd.add( multi );
                 cmd.parse(argc, argv);
 
-                vector < string >  fileNames = multi.getValue();
+                vector <string>  fileNames = multi.getValue();
 
 
You must only ever specify one (1) UnlabeledMultiArg. One @@ -464,14 +464,14 @@ xorAdd(). This means that exactly one of the Args must be set and no more.

xorAdd() comes in two flavors, either xorAdd(Arg& a, Arg& -b) to add just two Args to be xor'd and xorAdd( vector< -Arg* > xorList ) to add more than two Args. +b) to add just two Args to be xor'd and xorAdd( vector<Arg*> +xorList ) to add more than two Args.
 
 
-        ValueArg < string >  fileArg("f","file","File name to read",true,"homer",
+        ValueArg <string>  fileArg("f","file","File name to read",true,"homer",
                                  "filename");
-        ValueArg < string >  urlArg("u","url","URL to load",true, 
+        ValueArg <string>  urlArg("u","url","URL to load",true, 
                                     "http://example.com", "URL");
 
         cmd.xorAdd( fileArg, urlArg );
@@ -515,7 +515,7 @@ option on the command line. The help output is updated accordingly.
 
 
 
-        ValueArg < string >  fileArg("","file","File name",true,"homer","filename");
+        ValueArg <string>  fileArg("","file","File name",true,"homer","filename");
 
         SwitchArg  caseSwitch("","upperCase","Print in upper case",false);
 
@@ -532,14 +532,14 @@ constructor. If the value is in the list then it is accepted. If
 not, then an exception is thrown. Here is a simple example:
 
 
-        vector< string > allowed;
+        vector<string> allowed;
         allowed.push_back("homer");
         allowed.push_back("marge");
         allowed.push_back("bart");
         allowed.push_back("lisa");
         allowed.push_back("maggie");
         
-        ValueArg< string > nameArg("n","name","Name to print",true,"homer",allowed);
+        ValueArg<string> nameArg("n","name","Name to print",true,"homer",allowed);
         cmd.add( nameArg );
 
 
@@ -575,10 +575,10 @@ example: // Note that the following args take the "cmd" object as arguments. SwitchArg btest("B","existTestB", "exist Test B", false, cmd ); - ValueArg< string > stest("s", "stringTest", "string test", true, "homer", + ValueArg<string> stest("s", "stringTest", "string test", true, "homer", "string", cmd ); - UnlabeledValueArg< string > utest("unTest1","unlabeled test one", + UnlabeledValueArg<string> utest("unTest1","unlabeled test one", "default","string", cmd ); // NO add() calls! @@ -654,8 +654,8 @@ prints the names of the authors when present. First subclass Visitor:
 #include "Visitor.h"
-#include < string >
-#include < iostream >
+#include <string>
+#include <iostream>
 
 class AuthorVisitor : public Visitor
 {