81 for (
int i = 0; i <
argc; ++i)
88 int idx = current.
index + 1;
89 if (idx <
argc && (
avail[idx >> 3] & (1 << (idx & 0x7)))) {
99 for (
int index = 1; index <
argc; ++index)
100 if (
avail[index >> 3] & (1 << (index & 0x7)))
101 if (strcmp(str,
argv[index]) == 0) {
111 if (arg.
index != 0) {
119 for (
int i = 1; i <
argc; ++i)
120 if (
avail[i >> 3] & (1 << (i & 0x7)))
135 int idx = arg.
index + 1;
136 while (idx <
argc && (
avail[idx >> 3] & (1 << (idx & 0x7))) == 0)
164 val = (
ui32)strtoul(t2.
arg, NULL, 10);
177 val = strtof(t2.
arg, NULL);
190 if (strcmp(t2.
arg,
"false") == 0) {
195 else if (strcmp(t2.
arg,
"true") == 0) {
210 if (strcmp(t2.
arg,
"false") == 0) {
215 else if (strcmp(t2.
arg,
"true") == 0) {
void init(int argc, char *argv[])
void reinterpret_to_bool(const char *str, int &val)
void reinterpret(const char *str, int &val)
void reinterpret(const char *str, float &val)
void release_argument(const argument &arg)
void reinterpret(const char *str, ui32 &val)
argument find_argument(const char *str)
void reinterpret(const char *str, bool &val)
argument get_argument_zero()
argument get_next_avail_argument(const argument &arg)
void reinterpret(const char *str, arg_inter_base *fun)
void reinterpret(const char *str, char *&val)
argument get_next_value(const argument ¤t)
virtual void operate(const char *)=0