WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WXP::ResrcDB Class Reference

This class creates the resource database from the resource file, environment variables and command line parameters. More...

#include "../include/ResrcDB.h"

Static Public Member Functions

static int create (Strings &args, ResrcDBList &key, ResrcDBList &pos)
 
static int decodeProgramName (const char *string, String &prog)
 
static int printHelp (const char *name, ResrcDBList &key, ResrcDBList &pos)
 

Detailed Description

This class creates the resource database from the resource file, environment variables and command line parameters.

Author
Dan Vietor

Member Function Documentation

◆ create()

int ResrcDB::create ( Strings args,
ResrcDBList key,
ResrcDBList pos 
)
static

◆ decodeProgramName()

int ResrcDB::decodeProgramName ( const char *  string,
String prog 
)
static

Decodes the program name from command line parameters. It strips off path name, extension and drive designators. So C:\WXP\SFCWX.EXE becomes sfcwx.

Parameters
stringCommand name (from argv[0])
Return values
progProgram name (no path)

References WXP::String::copy(), WXP::String::get(), WXP::String::length(), WXP::String::lowCase(), and WXP::String::trunc().

Referenced by create().

◆ printHelp()

int ResrcDB::printHelp ( const char *  name,
ResrcDBList key,
ResrcDBList pos 
)
static

Prints help information to screen from resource database items

Parameters
nameProgram name
keyKeyed resource parameters
posPositional resource parameters

References WXP::Wxp::getVersion(), WXP::ResrcDBItem::help, WXP::ResrcDBList::next(), WXP::Wxp::outMessage(), and WXP::ResrcDBList::rewind().

Referenced by WXP::Prog::printHelp().


The documentation for this class was generated from the following files: