WXP C++ Library Version 6.74.9
|
This class sets up some static classes used by WXP programs. More...
#include "../include/Prog.h"
Static Public Member Functions | |
static int | readResrcFile (const char *prog, const char *name, const char *tag, const char *file) |
static int | readResrcFile (const char *prog, const char *file) |
static int | readResrcFile (const char *prog) |
static int | readResrcFile () |
static int | printProg (int level, const char *string) |
static int | printProg (const char *string) |
static int | printHelp (ResrcDBList &res_key, ResrcDBList &res_pos, const char *descript) |
static int | setCommand (const char *string) |
static int | prompt (const char *prompt, char *str, int len) |
static int | prompt (const char *prompt, String &str) |
static String | prompt (const char *prompt) |
This class sets up some static classes used by WXP programs.
|
static |
Prints syntax and help on command line parameters.
res_key | The keyed resources |
res_pos | The positional resources |
descript | A brief program description |
References WXP::Wxp::outMessage(), and WXP::ResrcDB::printHelp().
|
static |
Prints program title tag with WXP version number. Used by WXP programs. Print level is Wxp::MESS.
level | Print level (WXP::OUT2, WXP::PRINT, etc) |
string | Program name |
References printProg().
|
static |
Prints program title tag with WXP version number. Used by WXP programs
level | Print level (Wxp::OUT2, Wxp::PRINT, etc) |
string | Program name |
References WXP::Wxp::getVersion(), and WXP::Wxp::outMessage().
Referenced by printProg().
|
static |
Prompts the user for data
promptstr | Prompt string |
References prompt(), and WXP::String::set().
|
static |
Prompts the user for data
promptstr | Prompt string |
str | String to save data into |
len | The length of the string |
References setCommand(), and WXP::StrLib::trimWS().
Referenced by prompt(), WXP::Menu::prompt(), and prompt().
|
static |
Prompts the user for data
promptstr | Prompt string |
str | String to save data into |
References prompt(), and WXP::String::set().
|
static |
A simple resource file reader. Uses the default resource file name.
References readResrcFile().
Referenced by readResrcFile(), readResrcFile(), and readResrcFile().
|
static |
A simple resource file reader. Uses the default resource file name.
prog | Program name |
References readResrcFile().
|
static |
A simple resource file reader
prog | Program name |
file | Filename or directory of where resource file is located |
References readResrcFile().
|
static |
A simple resource file reader
prog | Program name |
name | Name to use in resource parsing |
tag | Tag to set prior to parsing |
file | Filename or directory of where resource file is located |
References WXP::Wxp::exit(), WXP::String::get(), WXP::Strings::getNum(), WXP::DateTool::getSeconds(), WXP::Strings::getString(), WXP::ResrcFile::getValid(), WXP::Wxp::NORUN, WXP::ResrcFile::open(), WXP::Strings::set(), WXP::ResrcFile::set(), WXP::Wxp::setDatabasePath(), WXP::Wxp::setMessageLevel(), WXP::ResrcFile::setTag(), WXP::License::valid(), and WXP::StrLib::valid().
|
static |
Parses a prompted command
string | The command string |
References WXP::StrLib::equal(), WXP::Wxp::exit(), and WXP::Wxp::NOERR.
Referenced by prompt().