Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csCommandLineHelper Class Reference

This class can be used to help parsing the commandline. More...

#include <cmdhelp.h>

List of all members.

Static Public Methods

void Help (iObjectRegistry *object_reg, iCommandLineParser *cmdline=NULL)
 Ask for Help. More...

bool CheckHelp (iObjectRegistry *object_reg, iCommandLineParser *cmdline=NULL)
 Check if -help is given on the commandline and return true.


Detailed Description

This class can be used to help parsing the commandline.

One of the functionalities it gives is the ability to have commandline help. To do that it will look at all plugins and see if they implement iConfig. This class requires the iPluginManager and iCommandLineParser to be in the object registry (or else you give it as a parameter).


Member Function Documentation

void csCommandLineHelper::Help ( iObjectRegistry * object_reg,
iCommandLineParser * cmdline = NULL ) [static]
 

Ask for Help.

This function will first send a broadcast message of type cscmdCommandLineHelp and then it will check all plugins and see if they implement iConfig. If the commandline parser is not given then the default commandline parser from the registry will be used.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000