#include <UT_Args.h>
|
| UT_Args () |
| Default constructor. More...
|
|
| UT_Args (int argc, const char *const argv[], const char *options) |
|
| ~UT_Args ()=default |
| Destructor. More...
|
|
| UT_Args (const UT_Args &)=delete |
|
UT_Args & | operator= (const UT_Args &)=delete |
|
int | argc () const |
|
const char * | argv (unsigned i) const |
|
const char *const * | argv () const |
|
const char * | operator[] (unsigned i) const |
|
const char * | operator() (unsigned i) const |
|
int | found (int opt) const |
|
const char * | argp (int opt, int which=0) const |
|
const char * | argp2 (int opt) const |
|
const char * | argp3 (int opt) const |
|
fpreal | fargp (int opt, int which=0) const |
|
fpreal | fargp2 (int opt) const |
|
fpreal | fargp3 (int opt) const |
|
int | iargp (int opt, int which=0) const |
|
int | iargp2 (int opt) const |
|
int | iargp3 (int opt) const |
|
void | initialize (int argc, const char *const argv[]) |
|
void | initialize (int argc, const UT_StringRef *argv) |
|
void | initialize (int argc, const UT_StringHolder *argv) |
|
void | appendArg (const char *arg) |
|
void | stripOptions (const char *options) |
|
int | fillCommandLine (UT_WorkBuffer &buf, int first_arg=0, int include_options=1) const |
|
void | makeCommandLine (UT_String &str, int first_arg=1) const |
|
void | setArgument (int idx, const char *text) |
| Set an argument to a specific value. More...
|
|
void | display () |
| Dump options. More...
|
|
UT_Args::UT_Args |
( |
int |
argc, |
|
|
const char *const |
argv[], |
|
|
const char * |
options |
|
) |
| |
Convenience constructor. This is equivalent to:
UT_Args::UT_Args |
( |
const UT_Args & |
| ) |
|
|
delete |
void UT_Args::appendArg |
( |
const char * |
arg | ) |
|
int UT_Args::argc |
( |
| ) |
const |
|
inline |
const char* UT_Args::argp |
( |
int |
opt, |
|
|
int |
which = 0 |
|
) |
| const |
|
inline |
const char* UT_Args::argp2 |
( |
int |
opt | ) |
const |
|
inline |
const char* UT_Args::argp3 |
( |
int |
opt | ) |
const |
|
inline |
const char* UT_Args::argv |
( |
unsigned |
i | ) |
const |
|
inline |
const char* const* UT_Args::argv |
( |
| ) |
const |
|
inline |
void UT_Args::display |
( |
| ) |
|
This method will make a command string out of all the arguments (and options). Arguments will be quoted according to 'csh' syntax.
int UT_Args::found |
( |
int |
opt | ) |
const |
|
inline |
int UT_Args::iargp |
( |
int |
opt, |
|
|
int |
which = 0 |
|
) |
| const |
|
inline |
int UT_Args::iargp2 |
( |
int |
opt | ) |
const |
|
inline |
int UT_Args::iargp3 |
( |
int |
opt | ) |
const |
|
inline |
void UT_Args::initialize |
( |
int |
argc, |
|
|
const char *const |
argv[] |
|
) |
| |
This is a version of fillCommandLine that takes a UT_String for the result.
const char* UT_Args::operator() |
( |
unsigned |
i | ) |
const |
|
inline |
const char* UT_Args::operator[] |
( |
unsigned |
i | ) |
const |
|
inline |
void UT_Args::setArgument |
( |
int |
idx, |
|
|
const char * |
text |
|
) |
| |
Set an argument to a specific value.
void UT_Args::stripOptions |
( |
const char * |
options | ) |
|
The documentation for this class was generated from the following file: