WXP::ResrcDBList Class Reference

This class stores resource database information. More...

#include "../include/ResrcDBList.h"

List of all members.

Public Member Functions

 ResrcDBList ()
int add (const char *name, const char *env, const char *cmdln, const char *help)
int rewind ()
const ResrcDBItemfirst ()
int first (ResrcDBItem &item)
const ResrcDBItemnext ()
int next (ResrcDBItem &item)
const ResrcDBItemget (int ind)
int get (int ind, ResrcDBItem &item)
int getNum ()
int print ()

Detailed Description

This class stores resource database information.

Author:
Dan Vietor

Constructor & Destructor Documentation

ResrcDBList::ResrcDBList (  ) 

Constructor. Initializes the class values.


Member Function Documentation

int ResrcDBList::add ( const char *  name,
const char *  env,
const char *  cmdln,
const char *  help 
)

Adds a new resource to the database linked list.

Parameters:
name Resource name
env Environment variable shortcut
cmdln Command line key shortcut
help Resource help string

References WXP::ResrcDBItem::next.

Referenced by WXP::WxpResrc::add().

int ResrcDBList::first ( ResrcDBItem item  ) 

Returns the first resource item in the list

Return values:
item A ResrcDBItem with first resource parameter
const ResrcDBItem * ResrcDBList::first (  ) 

Returns the first resource item in the list

Returns:
A ResrcDBItem with first resource parameter
int ResrcDBList::get ( int  ind,
ResrcDBItem item 
)

Returns a specific resource item from the list

Parameters:
ind The index in the list
Return values:
item A ResrcDBItem with the resource parameters

References WXP::ResrcDBItem::next.

const ResrcDBItem * ResrcDBList::get ( int  ind  ) 

Returns a specific resource item from the list

Parameters:
ind The index in the list
Returns:
A ResrcDBItem with the resource parameters

References WXP::ResrcDBItem::next.

Referenced by WXP::ResrcDB::create().

int ResrcDBList::next ( ResrcDBItem item  ) 

Returns the next resource item in the list

Return values:
item A ResrcDBItem with next resource parameter

References WXP::ResrcDBItem::next.

const ResrcDBItem * ResrcDBList::next (  ) 

Returns the next resource item in the list

Returns:
A ResrcDBItem with next resource parameter

References WXP::ResrcDBItem::next.

Referenced by WXP::ResrcDB::create(), and WXP::ResrcDB::printHelp().

int ResrcDBList::print (  ) 

Prints the contents of the database list to standard output

References WXP::ResrcDBItem::cmdln, WXP::ResrcDBItem::env, WXP::ResrcDBItem::help, and WXP::ResrcDBItem::next.

int ResrcDBList::rewind (  ) 

Rewinds the list

Referenced by WXP::ResrcDB::create(), and WXP::ResrcDB::printHelp().


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