WXP C++ Library Version 6.74.9
|
This class stores resource database information. More...
#include "../include/ResrcDBList.h"
Public Member Functions | |
ResrcDBList () | |
int | add (const char *name, const char *env, const char *cmdln, const char *help) |
int | add (ResrcDBItem &item) |
int | rewind () |
const ResrcDBItem * | first () |
int | first (ResrcDBItem &item) |
const ResrcDBItem * | next () |
int | next (ResrcDBItem &item) |
const ResrcDBItem * | get (int ind) |
int | get (int ind, ResrcDBItem &item) |
int | getNum () |
int | print () |
This class stores resource database information.
ResrcDBList::ResrcDBList | ( | ) |
Constructor. Initializes the class values.
int ResrcDBList::add | ( | const char * | name, |
const char * | env, | ||
const char * | cmdln, | ||
const char * | help | ||
) |
Adds a new resource to the database linked list.
name | Resource name |
env | Environment variable shortcut |
cmdln | Command line key shortcut |
help | Resource help string |
Referenced by WXP::WxpResrc::add().
const ResrcDBItem * ResrcDBList::first | ( | ) |
Returns the first resource item in the list
int ResrcDBList::first | ( | ResrcDBItem & | item | ) |
Returns the first resource item in the list
item | A ResrcDBItem with first resource parameter |
const ResrcDBItem * ResrcDBList::get | ( | int | ind | ) |
Returns a specific resource item from the list
ind | The index in the list |
Referenced by WXP::ResrcDB::create().
int ResrcDBList::get | ( | int | ind, |
ResrcDBItem & | item | ||
) |
Returns a specific resource item from the list
ind | The index in the list |
item | A ResrcDBItem with the resource parameters |
|
inline |
Returns number of resources in list
Referenced by WXP::ResrcDB::create().
const ResrcDBItem * ResrcDBList::next | ( | ) |
Returns the next resource item in the list
Referenced by WXP::ResrcDB::create(), and WXP::ResrcDB::printHelp().
int ResrcDBList::next | ( | ResrcDBItem & | item | ) |
Returns the next resource item in the list
item | A ResrcDBItem with next resource parameter |
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::name.
int ResrcDBList::rewind | ( | ) |
Rewinds the list
Referenced by WXP::ResrcDB::create(), and WXP::ResrcDB::printHelp().