Classes | Functions

Command Line API
[General Utility Libraries]

This is an older class, and it should probably be deprecated in favor of better command-line parsing objects out there. More...

Collaboration diagram for Command Line API:

Classes

class  CommandLine
 Command Line object. More...

Functions

virtual void CommandLine::getKeys (VecString &keys)=0 throw ()
virtual bool CommandLine::getValues (const char *key, VecString &values)=0 throw ()
static smart_ptr< CommandLineCommandLine::create (int argc, const char *argv[]) throw ()



const char * getSingleKeyValue (CommandLine *cmd, const char *key, bool is_required, const char *description=NULL) throw ()

Detailed Description

This is an older class, and it should probably be deprecated in favor of better command-line parsing objects out there.

But for whatever reason I've been using this one for most projects.


Function Documentation

virtual void CommandLine::getKeys ( VecString keys  )  throw () [pure virtual, inherited]
virtual bool CommandLine::getValues ( const char *  key,
VecString values 
) throw () [pure virtual, inherited]
smart_ptr< CommandLine > CommandLine::create ( int  argc,
const char *  argv[] 
) throw () [static, inherited]

Definition at line 171 of file cmdline.cpp.

const char* getSingleKeyValue ( CommandLine cmd,
const char *  key,
bool  is_required,
const char *  description = NULL 
) throw ()

Definition at line 192 of file cmdline.cpp.