Main::CommandLineImp Class Reference

A private implementation class used by Main::CommandLine. More...

List of all members.

Public Member Functions

 CommandLineImp (Main::Output &, const G::Arg &arg, const std::string &spec, const std::string &version)
bool contains (const std::string &switch_) const
std::string value (const std::string &switch_) const
unsigned int argc () const
bool hasUsageErrors () const
bool hasSemanticError (const Configuration &) const
void showHelp (bool error_stream) const
void showUsageErrors (bool error_stream) const
void showSemanticError (const Configuration &cfg, bool error_stream) const
void logSemanticWarnings (const Configuration &cfg) const
void showArgcError (bool error_stream) const
void showNoop (bool error_stream=false) const
void showVersion (bool error_stream=false) const
void showBanner (bool error_stream=false, const std::string &=std::string()) const
void showCopyright (bool error_stream=false, const std::string &=std::string()) const
void showWarranty (bool error_stream=false, const std::string &=std::string()) const
void showCredit (bool error_stream=false, const std::string &=std::string()) const
void showShortHelp (bool error_stream) const
std::string semanticError (const Configuration &, bool &) const
void showUsage (bool e) const
void showExtraHelp (bool error_stream) const

Static Public Member Functions

static std::string switchSpec (bool is_windows)
static std::string switchSpec_unix ()
static std::string switchSpec_windows ()


Detailed Description

A private implementation class used by Main::CommandLine.

Definition at line 41 of file commandline_full.cpp.


Constructor & Destructor Documentation

Main::CommandLineImp::CommandLineImp ( Main::Output output,
const G::Arg arg,
const std::string &  spec,
const std::string &  version 
)

Definition at line 182 of file commandline_full.cpp.


Member Function Documentation

bool Main::CommandLineImp::contains ( const std::string &  switch_  )  const

Definition at line 216 of file commandline_full.cpp.

References G::GetOpt::contains().

Referenced by Main::CommandLine::contains(), and Main::CommandLine::value().

std::string Main::CommandLineImp::value ( const std::string &  switch_  )  const

Definition at line 221 of file commandline_full.cpp.

References G::GetOpt::value().

Referenced by Main::CommandLine::value().

unsigned int Main::CommandLineImp::argc (  )  const

Definition at line 191 of file commandline_full.cpp.

References G::GetOpt::args().

Referenced by Main::CommandLine::argc().

bool Main::CommandLineImp::hasUsageErrors (  )  const

Definition at line 196 of file commandline_full.cpp.

References G::GetOpt::hasErrors().

Referenced by Main::CommandLine::hasUsageErrors().

bool Main::CommandLineImp::hasSemanticError ( const Configuration cfg  )  const

Definition at line 386 of file commandline_full.cpp.

References semanticError().

Referenced by Main::CommandLine::hasSemanticError().

void Main::CommandLineImp::showHelp ( bool  error_stream  )  const

void Main::CommandLineImp::showUsageErrors ( bool  error_stream  )  const

void Main::CommandLineImp::showSemanticError ( const Configuration cfg,
bool  error_stream 
) const

void Main::CommandLineImp::logSemanticWarnings ( const Configuration cfg  )  const

Definition at line 400 of file commandline_full.cpp.

References G_WARNING, and semanticError().

Referenced by Main::CommandLine::logSemanticWarnings().

void Main::CommandLineImp::showArgcError ( bool  error_stream  )  const

void Main::CommandLineImp::showNoop ( bool  error_stream = false  )  const

Definition at line 474 of file commandline_full.cpp.

References G::Arg::prefix(), and Main::Show::s().

Referenced by Main::CommandLine::showNoop().

void Main::CommandLineImp::showVersion ( bool  error_stream = false  )  const

void Main::CommandLineImp::showBanner ( bool  error_stream = false,
const std::string &  final = std::string() 
) const

Definition at line 480 of file commandline_full.cpp.

References Main::Show::s().

Referenced by Main::CommandLine::showBanner(), showHelp(), and showVersion().

void Main::CommandLineImp::showCopyright ( bool  error_stream = false,
const std::string &  final = std::string() 
) const

std::string Main::CommandLineImp::switchSpec ( bool  is_windows  )  [static]

void Main::CommandLineImp::showWarranty ( bool  error_stream = false,
const std::string &  final = std::string() 
) const

Definition at line 493 of file commandline_full.cpp.

References Main::Show::s(), and Main::Legal::warranty().

Referenced by showVersion().

void Main::CommandLineImp::showCredit ( bool  error_stream = false,
const std::string &  final = std::string() 
) const

Definition at line 499 of file commandline_full.cpp.

References GSsl::Library::credit(), and Main::Show::s().

Referenced by showVersion().

void Main::CommandLineImp::showShortHelp ( bool  error_stream  )  const

Definition at line 422 of file commandline_full.cpp.

References G::Arg::prefix(), and Main::Show::s().

Referenced by showArgcError(), and showUsageErrors().

std::string Main::CommandLineImp::semanticError ( const Configuration cfg,
bool &  fatal 
) const

void Main::CommandLineImp::showUsage ( bool  e  )  const

void Main::CommandLineImp::showExtraHelp ( bool  error_stream  )  const

Definition at line 441 of file commandline_full.cpp.

References G::GetOpt::contains(), G::Arg::prefix(), and Main::Show::s().

Referenced by showHelp().

std::string Main::CommandLineImp::switchSpec_unix (  )  [static]

Definition at line 160 of file commandline_full.cpp.

Referenced by switchSpec().

std::string Main::CommandLineImp::switchSpec_windows (  )  [static]

Definition at line 171 of file commandline_full.cpp.

Referenced by switchSpec().


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

Generated on Fri Apr 18 15:56:14 2008 for E-MailRelay by  doxygen 1.5.5