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

OptionSetKeeper Class Reference

Keeper for option sequence and input splitting. More...

#include <optkeep.h>

List of all members.

Public Methods

 OptionSetKeeper (OptionSetKeeper *_parent=NULL)
virtual ~OptionSetKeeper ()
virtual bool readSpecial (Parser &p) hook
virtual bool postParsing (void) hook
int read (Parser &p)
ModListlookup (const char *iname, bool useDefaults=true)
void dump (const char *pref)

Private Methods

int readpart (Parser &p)

Private Attributes

OptionSetKeeper* parent
char* inames [MAX_FOPTS]
ModListoptsets [MAX_FOPTS]
int cursize


Detailed Description

Keeper for option sequence and input splitting.


Constructor & Destructor Documentation

OptionSetKeeper::OptionSetKeeper ( OptionSetKeeper * _parent = NULL )
 

constructor

if _parent is !=NULL, it will be used for "default" and "global" lookups

OptionSetKeeper::~OptionSetKeeper ( ) [virtual]
 


Member Function Documentation

void OptionSetKeeper::dump ( const char * pref )
 

ModList * OptionSetKeeper::lookup ( const char * iname,
bool useDefaults = true )
 

searches for matching ModList with name iname

if useDefaults is true, "default" and "global" lookups are done

Returns:
never NULL. If no matching group is found, a reference to empty_modlist is returned

bool OptionSetKeeper::postParsing ( void ) [virtual]
 

abstract.

post-parsing checks. If return value is false, the program will safely exit.

This abstract implementation does nothing at all.

int OptionSetKeeper::read ( Parser & p )
 

bool OptionSetKeeper::readSpecial ( Parser & p ) [virtual]
 

abstract.

checks whether the current token is some special key. If so, it parses the key, eats it and returns true.

Otherwise it return false.

This abstract implementation does nothing at all.

int OptionSetKeeper::readpart ( Parser & p ) [private]
 


Member Data Documentation

int OptionSetKeeper::cursize [private]
 

char * OptionSetKeeper::inames[MAX_FOPTS] [private]
 

ModList * OptionSetKeeper::optsets[MAX_FOPTS] [private]
 

OptionSetKeeper * OptionSetKeeper::parent [private]
 


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