Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AppOptions Class Reference

Holds app-wide info. More...

#include <appopts.h>

List of all members.

Public Methods

 AppOptions ()
 ~AppOptions ()
bool parseArgs (int argc, char **argv)
bool setOutName (const char *basename)

Public Attributes

bool errhelp
char* inputfname
char* woutname
char* ncpoutname
char* ioutname
char* baseoutname
bool create_instance

Private Methods

bool trySetOutName (char *)
void usage (void)


Detailed Description

Holds app-wide info.

appopt in appopts.h is only instance of this class.


Constructor & Destructor Documentation

AppOptions::AppOptions ( )
 

AppOptions constructor desctip? and this?

AppOptions::~AppOptions ( )
 

dtor


Member Function Documentation

bool AppOptions::parseArgs ( int argc,
char ** argv )
 

parses command line args.

Returns:
is false, if there was an error
See also:
msglevel

bool AppOptions::setOutName ( const char * basename )
 

Sets the output file names (woutname, ncpoutname, ioutname) according to the given basename, including auto-detection of file type

bool AppOptions::trySetOutName ( char * fn ) [private]
 

Parses the -o= command line option

void AppOptions::usage ( void ) [private]
 

Prints the "usage" info message


Member Data Documentation

char * AppOptions::baseoutname
 

Base of output name

bool AppOptions::create_instance
 

If true, an instance is to be created

bool AppOptions::errhelp
 

If false, the explanations for errors and warning won't be written

char * AppOptions::inputfname
 

Name of command file to process

char * AppOptions::ioutname
 

Name of .i-w or .i-p output file

char * AppOptions::ncpoutname
 

Name of .ncp output file

char * AppOptions::woutname
 

Name of .w or .prm output file


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 09:33:58 2002 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000