Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuCommandLineTool.h

Go to the documentation of this file.
00001 
00009 #include "vuString.h"
00010 
00011 class vuCommandLineTool
00012 {
00013 public:
00014   // constructor
00015   vuCommandLineTool();
00016 
00017   // default constructor
00018   vuCommandLineTool(int argc, const char ** argv);
00019 
00020   // copy constructor
00021   vuCommandLineTool(const vuCommandLineTool &other);
00022 
00023   ~vuCommandLineTool();
00024 
00027   bool hasParameter(const char *param);
00029   vuString stringForParameter(const char *param);
00031   float floatForParameter(const char *param);
00033   int intForParameter(const char *param);
00034 
00041   word numberOfNonParameters();
00049   word numberOfNonParameters(bool &isValid);
00050 
00051   vuString getNonParameter(const dword idx);
00052 
00054   vuString getArgument(word i);
00055 
00057   bool fileExists(const vuString &fileName);
00058   
00062   vuString toolName();
00063 
00064 private:
00065   int      m_argc;  // length of command line
00066   vuString *m_argv; // command line
00067 
00068   int indexForParamter(const vuString &param);
00069 };

Generated on Wed Dec 15 21:20:33 2004 for vuVolume by  doxygen 1.3.9.1