Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members  

Console::Main.cpp
[Console::Main.cpp]


Modules

Console::Main.cpp

Functions

int main (int argc, char *argv[])
 the main function

void fExecuteCommand (const QString qs_Command, const QMemArray< bool > &qma_Opts, const QString qs_CommandMore)
 fExecuteCommand begins the processing of the users command

void fSearchClass (const QMemArray< bool > &qma_Opts, const QString qs_String)
 fSearchClass search for a given class

void fSearchSoftware (const QMemArray< bool > &qma_Opts, const QString qs_String)
 fSearchSoftware search for a given piece of software

void fShowClass (const QMemArray< bool > &qma_Opts, const QString qs_String)
 fShowClass prints the software for a given class

void fShowSoftware (const QMemArray< bool > &qma_Opts, const QString qs_String)
 fShowSoftware prints the details of a piece of software

void fUpdate (const QMemArray< bool > &qma_Opts)
 fUpdate updates the xml database with one pulled from the server


Function Documentation

void fExecuteCommand const QString    qs_Command,
const QMemArray< bool > &    qma_Opts,
const QString    qs_CommandMore
 

fExecuteCommand begins the processing of the users command

Parameters:
qs_Command  a QString containing the command the user pased to the app
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program
qs_CommandMore  a QString containing a possible aditional command, such as the term to search for

Definition at line 108 of file console/main.cpp.

void fSearchClass const QMemArray< bool > &    qma_Opts,
const QString    qs_String
 

fSearchClass search for a given class

Parameters:
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program
qs_String  a QString that stores the string to search for

Definition at line 130 of file console/main.cpp.

References database::search_class().

void fSearchSoftware const QMemArray< bool > &    qma_Opts,
const QString    qs_String
 

fSearchSoftware search for a given piece of software

Parameters:
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program
qs_String  a QString that stores the string to search for

Definition at line 155 of file console/main.cpp.

References database::search_software().

void fShowClass const QMemArray< bool > &    qma_Opts,
const QString    qs_String
 

fShowClass prints the software for a given class

Parameters:
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program
qs_String  a QString containing the name of the class to view, in the form Department Abbreviation + Number (eg CS180)

Definition at line 180 of file console/main.cpp.

References database::get_class().

void fShowSoftware const QMemArray< bool > &    qma_Opts,
const QString    qs_String
 

fShowSoftware prints the details of a piece of software

Parameters:
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program
qs_String  a QString that stores the name of the app to show.

Definition at line 213 of file console/main.cpp.

References database::get_software().

void fUpdate const QMemArray< bool > &    qma_Opts
 

fUpdate updates the xml database with one pulled from the server

Parameters:
qma_Opts  a QMemArray<bool> that stores the possible option switches passed to the program

Definition at line 243 of file console/main.cpp.

int main int    argc,
char *    argv[]
 

the main function

Possible switches:

  • not yet implemented
Possible Commands:
  • search-class: search for a class by its full name (eg Foundations of Computer Science I)
  • search-software: search for a piece of software by package name
  • show-class: lists all the information for the class given in the form departmental abbr. + number (eg CS180)
  • show-software: displays the pertninant pieces of information on a given piece of software
  • update: fetches a new copy of the database xml file

Definition at line 31 of file console/main.cpp.


Generated on Wed Feb 12 21:57:01 2003 for class-soft by doxygen1.2.16