Vocabulary Options class. More...
#include <vocoptions.H>
Public Member Functions | |
CVocOptions () | |
Default constructor. | |
int | Parse (int argc, char *argv[]) |
Parser function. | |
bool | DebugMode () const |
Debug mode function. | |
bool | StackMode () const |
Stack mode function. | |
bool | CaseMode () const |
Case mode function. | |
bool | SynonymMode () const |
Synonym mode function. | |
bool | BeepMode () const |
Beep mode function This function returns the current beep mode settings. | |
enVocMode | GetMode () const |
Get inquiry mode function. | |
enVocLang | GetLang () const |
Get language mode function. | |
int | GetNumOfPasses () const |
Get number of passes function. | |
char ** | GetVocFiles () const |
Get name from vocabulary files function. | |
int | GetNumOfVocFiles () const |
Get number of vocabulary files function. |
Private Attributes | |
bool | m_bDebug |
debug mode boolean | |
bool | m_bStack |
stack mode boolean | |
bool | m_bCaseMode |
case-sensitive boolean | |
bool | m_bSynonym |
synonym boolean | |
bool | m_bBeep |
beep boolean | |
enVocMode | m_enMode |
mode enum. | |
enVocLang | m_enLang |
language enum. | |
int | m_nNumPasses |
number of passes | |
char ** | m_pVocFiles |
null-terminated voc-file list | |
int | m_nNumFiles |
number of vocabulary files |
Vocabulary Options class.
This class parses the command line and makes the options available for other classes.
CVocOptions::CVocOptions | ( | ) |
Default constructor.
This constructor initializes the member variables with default values.
|
inline |
Beep mode function This function returns the current beep mode settings.
References m_bBeep.
|
inline |
Case mode function.
This function returns the current case mode setting.
References m_bCaseMode.
|
inline |
Debug mode function.
This function returns the current debug mode setting.
References m_bDebug.
|
inline |
Get language mode function.
This function returns the current inquiry language setting.
References m_enLang.
|
inline |
Get inquiry mode function.
This function returns the current inquiry mode setting.
References m_enMode.
|
inline |
Get number of passes function.
References m_nNumPasses.
|
inline |
Get number of vocabulary files function.
References m_nNumFiles.
|
inline |
Get name from vocabulary files function.
This function returns a array with vocabulary files.
References m_pVocFiles.
int CVocOptions::Parse | ( | int | argc, |
char * | argv[] | ||
) |
Parser function.
This function parses the command line and fills the member variables.
References CVocatraInfo::GetAlphabeticalMode(), CVocatraInfo::GetLeftLang(), CVocatraInfo::GetName(), CVocatraInfo::GetOrderMode(), CVocatraInfo::GetRandomMode(), CVocatraInfo::GetRightLang(), CVocatraInfo::PrintHelp(), CVocatraInfo::PrintUsage(), and CVocatraInfo::PrintVersion().
|
inline |
Stack mode function.
This function returns the current stack mode setting.
References m_bStack.
|
inline |
Synonym mode function.
This function returns the current synonym mode setting.
References m_bSynonym.
|
private |
language enum.
This value will be vlLeft if the inquiry language is left; vlRight if right.
Referenced by GetLang().
|
private |
mode enum.
This value will be vmOrder if the inquiry mode is order, vmRandom if random and vmAlphabetical if alphabetical.
Referenced by GetMode().
Generated for Vocatra by |