WXP C++ Library Version 6.74.9
|
This class parses the command line for resource values. More...
#include "../include/ResrcCL.h"
Public Member Functions | |
ResrcCL (Strings &rstr) | |
int | rewind () |
int | getKeyed (String &name, String &value) |
int | getPosition (String &value) |
Static Public Member Functions | |
static int | compare (const char *str, const char *name, const char *cmdln) |
This class parses the command line for resource values.
ResrcCL::ResrcCL | ( | Strings & | rstr | ) |
Constructor. Initializes class values
rstr | Strings class containing command line arguments |
|
static |
Checks to see if command line value matches resource name, abbreviation or shortcut.
str | String from command line |
name | Full resource name (can match subset) |
cmdln | Command line shortcut |
References WXP::StrLib::equal().
Referenced by WXP::ResrcDB::create().
Gets a keyed (-key=value) parameter from command line
name | Name of key |
value | Value |
References WXP::String::clear(), WXP::String::copy(), WXP::StrLib::equal(), WXP::Strings::getNum(), WXP::Strings::getString(), and WXP::StrLib::index().
Referenced by WXP::ResrcDB::create().
int ResrcCL::getPosition | ( | String & | value | ) |
Gets each positional parameter from the command line
value | The positional value |
References WXP::String::copy(), WXP::Strings::getNum(), and WXP::Strings::getString().
Referenced by WXP::ResrcDB::create().
int ResrcCL::rewind | ( | ) |
Rewind to first command line parameter
Referenced by WXP::ResrcDB::create().