#include <vuCommandLineTool.h>
Collaboration diagram for vuCommandLineTool:

Public Member Functions | |
| vuCommandLineTool () | |
| vuCommandLineTool (int argc, const char **argv) | |
| vuCommandLineTool (const vuCommandLineTool &other) | |
| ~vuCommandLineTool () | |
| bool | hasParameter (const char *param) |
| vuString | stringForParameter (const char *param) |
| returns the string value for a param | |
| float | floatForParameter (const char *param) |
| returns the float value for a param | |
| int | intForParameter (const char *param) |
| returns the int value for a param | |
| word | numberOfNonParameters () |
| word | numberOfNonParameters (bool &isValid) |
| vuString | getNonParameter (const dword idx) |
| vuString | getArgument (word i) |
| get the ith argument of the command line | |
| bool | fileExists (const vuString &fileName) |
| returns true if file exists, otherwise false | |
| vuString | toolName () |
Private Member Functions | |
| int | indexForParamter (const vuString ¶m) |
Private Attributes | |
| int | m_argc |
| vuString * | m_argv |
Following three schemes are supported: -t --type --type=someValue
Definition at line 11 of file vuCommandLineTool.h.
|
|
Definition at line 5 of file vuCommandLineTool.cpp. |
|
||||||||||||
|
Definition at line 11 of file vuCommandLineTool.cpp. |
|
|
Definition at line 23 of file vuCommandLineTool.cpp. |
|
|
Definition at line 28 of file vuCommandLineTool.cpp. References m_argv. |
|
|
returns true if file exists, otherwise false
Definition at line 126 of file vuCommandLineTool.cpp. References vuString::c_str(). Referenced by _parseParameters(). |
Here is the call graph for this function:

|
|
returns the float value for a param
Definition at line 64 of file vuCommandLineTool.cpp. References vuString::c_str(), and stringForParameter(). Referenced by _parseParameters(). |
Here is the call graph for this function:

|
|
get the ith argument of the command line
Definition at line 119 of file vuCommandLineTool.cpp. References m_argc, m_argv, and word. Referenced by _parseParameters(), and getNonParameter(). |
|
|
Definition at line 111 of file vuCommandLineTool.cpp. References dword, getArgument(), m_argc, and numberOfNonParameters(). |
Here is the call graph for this function:

|
|
returns true, if param exists, otherwise false
Definition at line 36 of file vuCommandLineTool.cpp. References indexForParamter(). Referenced by _parseParameters(). |
Here is the call graph for this function:

|
|
Definition at line 154 of file vuCommandLineTool.cpp. References vuString::hasPrefix(), vuString::isEmpty(), and m_argv. Referenced by hasParameter(), and stringForParameter(). |
Here is the call graph for this function:

|
|
returns the int value for a param
Definition at line 74 of file vuCommandLineTool.cpp. References vuString::c_str(), and stringForParameter(). Referenced by _parseParameters(). |
Here is the call graph for this function:

|
|
returns the number of non parameters (the ones which don't have the prefix '-') AT THE END of argv.
Definition at line 91 of file vuCommandLineTool.cpp. References vuString::hasPrefix(), m_argc, m_argv, and word. |
Here is the call graph for this function:

|
|
returns the number of non parameters (the ones which don't have the prefix '-') AT THE END of argv.
Definition at line 85 of file vuCommandLineTool.cpp. References word. Referenced by _parseParameters(), and getNonParameter(). |
|
|
returns the string value for a param
Definition at line 41 of file vuCommandLineTool.cpp. References dword, vuString::getLength(), vuString::hasPrefix(), indexForParamter(), m_argv, and vuString::substr(). Referenced by _parseParameters(), floatForParameter(), and intForParameter(). |
Here is the call graph for this function:

|
|
returns the lastPathComponent of the 0th argument of argv (usually the toolname) Definition at line 144 of file vuCommandLineTool.cpp. References vuString::getLastPathComponent(), m_argc, and m_argv. Referenced by _helpString(), and _parseParameters(). |
Here is the call graph for this function:

|
|
Definition at line 65 of file vuCommandLineTool.h. Referenced by getArgument(), getNonParameter(), numberOfNonParameters(), toolName(), and vuCommandLineTool(). |
|
|
Definition at line 66 of file vuCommandLineTool.h. Referenced by getArgument(), indexForParamter(), numberOfNonParameters(), stringForParameter(), toolName(), vuCommandLineTool(), and ~vuCommandLineTool(). |
1.3.9.1