WXP::Prog Class Reference

This class sets up some static classes used by many other WXP classes. More...

#include "../include/Prog.h"

List of all members.

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)

Detailed Description

This class sets up some static classes used by many other WXP classes.

Author:
Dan Vietor

Member Function Documentation

int Prog::readResrcFile ( const char *  prog,
const char *  file 
) [static]

A simple resource file reader

Parameters:
prog Program name
file Filename or directory of where resource file is located

References readResrcFile().

int Prog::readResrcFile ( const char *  prog,
const char *  name,
const char *  tag,
const char *  file 
) [static]

A simple resource file reader

Parameters:
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::setMessage(), WXP::ResrcFile::setTag(), and WXP::StrLib::valid().

Referenced by readResrcFile().


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