Static Public Member Functions | Static Private Member Functions | List of all members
CVocatraInfo Class Reference

Vocatra Information class This class provides information and help methods about Vocatra. More...

#include <vocatrainfo.H>

Static Public Member Functions

static void PrintUsage (const bool &bPrintHelp=true)
 Print Usage function.
static void PrintHelp ()
 Print Help function.
static void PrintVersion ()
 Print Version function.
static const char * GetName ()
 Get Name function.
static const char * GetOrderMode ()
 Get Order Mode function.
static const char * GetRandomMode ()
 Get Random Mode function.
static const char * GetAlphabeticalMode ()
 Get Alphabetical Mode function This function returns the string from the alphabetical mode.
static const char * GetLeftLang ()
 Get Left Language function.
static const char * GetRightLang ()
 Get Right Language function.

Static Private Member Functions

static std::string breakString (const std::string &str, const bool &bIndent=false)
 Static helper function.

Detailed Description

Vocatra Information class This class provides information and help methods about Vocatra.

Member Function Documentation

std::string CVocatraInfo::breakString ( const std::string &  str,
const bool &  bIndent = false 
)
staticprivate

Static helper function.

This function breaks a string into lines with the length of <= 70 characters.

Parameters
strthis string will be broken into lines
bIndentIf true, indent new lines with 49 spaces. (needed to create man page)
Returns
string with added
characters and optinal indentation.
const char * CVocatraInfo::GetAlphabeticalMode ( )
static

Get Alphabetical Mode function This function returns the string from the alphabetical mode.

Default: alphabetical

Referenced by CVocOptions::Parse().

const char * CVocatraInfo::GetLeftLang ( )
static

Get Left Language function.

This function returns the string from the left language. Default: left

Referenced by CVocOptions::Parse().

const char * CVocatraInfo::GetName ( )
static

Get Name function.

This function returns the package name. Default: vocatra

Referenced by CVocFile::AppendVocabulary(), CVocTrainer::Init(), CVocOptions::Parse(), and CVocAdmin::printBits().

const char * CVocatraInfo::GetOrderMode ( )
static

Get Order Mode function.

This function returns the string from the order mode. Default: order

Referenced by CVocOptions::Parse().

const char * CVocatraInfo::GetRandomMode ( )
static

Get Random Mode function.

This function returns the string from the random mode. Default: random

Referenced by CVocOptions::Parse().

const char * CVocatraInfo::GetRightLang ( )
static

Get Right Language function.

This function returns the string from the right language. Default: right

Referenced by CVocOptions::Parse().

void CVocatraInfo::PrintHelp ( )
static

Print Help function.

This function prints the help to the stdout.

Referenced by CVocOptions::Parse().

void CVocatraInfo::PrintUsage ( const bool &  bPrintHelp = true)
static

Print Usage function.

This function prints the usage string to the stdout.

Parameters
bPrintHelpprints "try vocatra &ndash;help ..."-string if true

Referenced by CVocOptions::Parse().

void CVocatraInfo::PrintVersion ( )
static

Print Version function.

This function prints the version number to the stdout.

Referenced by CVocOptions::Parse().


The documentation for this class was generated from the following files:

Get Vocatra at SourceForge.net. Fast, secure and Free Open Source software downloads Generated for Vocatra by doxygen