libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <cmd_line_processing.hpp>
Public Types | |
typedef ProgOpts | ProgramOptions |
typedef Except_ | exception_type |
Public Member Functions | |
__stdcall | CmdLineProcessorBase (ProgramOptions &) |
CmdLineProcessorBase (CmdLineProcessorBase const &)=delete | |
virtual __stdcall | ~CmdLineProcessorBase (void) |
virtual bool __fastcall | ProcessParams (const unsigned int argv, const tchar *const *const argc, tostream &o) |
const shared_ptr< Logger< exception >, exception > &__fastcall | Log (void) const noexcept(true) |
Protected Member Functions | |
virtual bool __fastcall | ProcessParamInternal (const unsigned int argv, const tchar *const *const argc, unsigned long &i, tostream &o) |
virtual void __fastcall | DumpHelp (tostream &o) const |
![]() | |
__stdcall | CmdLineParamsData () |
CmdLineParamsData (CmdLineParamsData const &)=delete | |
__stdcall | ~CmdLineParamsData () |
Protected Attributes | |
ProgramOptions & | prog_opts |
const tchar * | app_name |
![]() | |
const ParamType | help_param |
const ParamType | version_param |
Additional Inherited Members | |
![]() | |
static const ParamType | params [] |
static const tchar *const | authors [] |
static const tchar | version [] =_T("0.1") |
static const tchar | copyright [] =_T("2003. This is free software; see the source for copying conditions.") |
static const tchar | warranty [] =_T("There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.") |
static const tchar | contact_details [] =_T("http://www.hussar.me.uk") |
static const tchar | help_text [] =_T("My test app.") |
Definition at line 90 of file cmd_line_processing.hpp.
typedef Except_ jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::exception_type |
Definition at line 93 of file cmd_line_processing.hpp.
typedef ProgOpts jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::ProgramOptions |
Definition at line 92 of file cmd_line_processing.hpp.
|
inline |
Definition at line 181 of file cmd_line_processing.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::CmdLineProcessorBase(), and jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::prog_opts.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::CmdLineProcessorBase().
|
delete |
|
inlinevirtual |
Definition at line 97 of file cmd_line_processing.hpp.
|
inlineprotectedvirtual |
Reimplemented in jmmcg::LIBJMMCG_VER_NAMESPACE::ConfigFile< ProgOpts, Except_ >.
Definition at line 242 of file cmd_line_processing.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::app_name, jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineParamsData::ParamType::description, jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineParamsData::help_param, jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineParamsData::ParamType::param, and jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineParamsData::version_param.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::ProcessParamInternal().
|
inlinenoexcept |
Definition at line 102 of file cmd_line_processing.hpp.
|
inlineprotectedvirtual |
Reimplemented in jmmcg::LIBJMMCG_VER_NAMESPACE::ConfigFile< ProgOpts, Except_ >.
Definition at line 213 of file cmd_line_processing.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::DumpHelp().
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::ProcessParams().
|
inlinevirtual |
|
protected |
Definition at line 109 of file cmd_line_processing.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::DumpHelp(), and jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::ProcessParams().
|
protected |
Definition at line 108 of file cmd_line_processing.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::CmdLineProcessorBase< ProgOpts, Except_ >::CmdLineProcessorBase().