#include <vtkKWArguments.h>
Public Types | |
typedef int(* | CallbackType )(const char *argument, const char *value, void *call_data) |
typedef int(* | ErrorCallbackType )(const char *argument, void *client_data) |
enum | VariableTypeEnum { NO_VARIABLE_TYPE = 0, INT_TYPE, DOUBLE_TYPE, STRING_TYPE } |
enum | ArgumentTypeEnum { NO_ARGUMENT, CONCAT_ARGUMENT, SPACE_ARGUMENT, EQUAL_ARGUMENT } |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWArguments, vtkObject) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Initialize (int argc, char *argv[]) |
int | Parse () |
void | AddCallbacks (CallbackStructure *callbacks) |
void | GetRemainingArguments (int *argc, char ***argv) |
void | Initialize () |
void | AddArgument (const char *arg) |
void | AddCallback (const char *argument, ArgumentTypeEnum type, CallbackType callback, void *call_data, const char *help) |
void | AddCallback (const char *argument, ArgumentTypeEnum type, const char *help) |
void | AddHandler (const char *argument, ArgumentTypeEnum type, VariableTypeEnum vtype, void *variable, const char *help) |
void | AddHandler (const char *argument, ArgumentTypeEnum type, int *variable, const char *help) |
void | AddHandler (const char *argument, ArgumentTypeEnum type, double *variable, const char *help) |
void | AddHandler (const char *argument, ArgumentTypeEnum type, char **variable, const char *help) |
void | AddBooleanHandler (const char *argument, int *variable, const char *help) |
void | SetClientData (void *client_data) |
void | SetUnknownArgumentCallback (ErrorCallbackType callback) |
virtual char * | GetHelp () |
const char * | GetHelp (const char *arg) |
virtual void | SetLineLength (unsigned int) |
virtual unsigned int | GetLineLength () |
int | IsSpecified (const char *arg) |
const char * | GetValue (const char *arg) |
Static Public Member Functions | |
vtkKWArguments * | New () |
Protected Types | |
typedef vtkKWArgumentsInternal | Internal |
Protected Member Functions | |
vtkKWArguments () | |
~vtkKWArguments () | |
virtual void | SetHelp (const char *) |
void | GenerateHelp () |
Protected Attributes | |
Internal * | Internals |
char * | Help |
unsigned int | LineLength |
A simple icon wrapper. It can either be used with file icons.h to provide a unified interface for internal icons or a wrapper for custom icons. The icons are defined with width, height, pixel_size, and array of unsigned char values.
Definition at line 30 of file vtkKWArguments.h.
|
Definition at line 58 of file vtkKWArguments.h. |
|
Definition at line 60 of file vtkKWArguments.h. |
|
Definition at line 155 of file vtkKWArguments.h. |
|
These are different argument types. Definition at line 42 of file vtkKWArguments.h. |
|
Definition at line 50 of file vtkKWArguments.h. |
|
|
|
|
|
|
|
|
|
|
|
Initialize internal data structures. This should be called before parsing. |
|
Initialize internal data structure and pass arguments one by one. This is convinience method for use from scripting languages where argc and argv are not available. |
|
Initialize internal data structure and pass arguments one by one. This is convinience method for use from scripting languages where argc and argv are not available. |
|
This method will parse arguments and call apropriate methods. |
|
This method will add a callback for a specific argument. The arguments to it are argument, argument type, callback method, and call data. The argument help specifies the help string used with this option. The callback and call_data can be skipped. |
|
This method will add a callback for a specific argument. The arguments to it are argument, argument type, callback method, and call data. The argument help specifies the help string used with this option. The callback and call_data can be skipped. Definition at line 97 of file vtkKWArguments.h. |
|
Add handler for argument which is going to set the variable to the specified value. |
|
Add handler for argument which is going to set the variable to the specified value. |
|
Add handler for argument which is going to set the variable to the specified value. |
|
Add handler for argument which is going to set the variable to the specified value. |
|
Add handler for argument which is going to set the variable to the specified value. |
|
This method registers callbacks for argument types from array of structures. It stops when an entry has all zeros. |
|
Set the callbacks for error handling. |
|
Set the callbacks for error handling. |
|
Get remaining arguments. It allocates space for argv, so you have to call delete[] on it. |
|
Return string containing help. If the argument is specified, only return help for that argument. |
|
Return string containing help. If the argument is specified, only return help for that argument. |
|
Get / Set the line length. Default length is 80. |
|
Get / Set the line length. Default length is 80. |
|
This are methods for map interface. After calling ->Parse(), the program can ask the map for its entries. |
|
This are methods for map interface. After calling ->Parse(), the program can ask the map for its entries. |
|
|
|
|
|
Definition at line 157 of file vtkKWArguments.h. |
|
Definition at line 158 of file vtkKWArguments.h. |
|
Definition at line 160 of file vtkKWArguments.h. |