WXP::ResrcDB Class Reference

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

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

List of all members.

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 resrouce file, environment variables and command line parameters.

Author:
Dan Vietor

Member Function Documentation

int ResrcDB::create ( Strings args,
ResrcDBList key,
ResrcDBList pos 
) [static]
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:.EXE becomes sfcwx.

Parameters:
string Command name (from argv[0])
Return values:
prog Program name (no path)

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

Referenced by create().

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

Prints help information to screen from resource database items

Parameters:
name Program name
key Keyed resource parameters
pos Positional resource parameters

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


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1