Public Member Functions | Public Attributes | Private Attributes

cfg_CliBak Class Reference
[Parser for config files; validation]

#include <cli_arg.h>

Inheritance diagram for cfg_CliBak:
Inheritance graph
[legend]
Collaboration diagram for cfg_CliBak:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cfg_CliBak (UInt32_t a_argc, char *a_argv[])
virtual ~cfg_CliBak ()
virtual void HelpDump ()
 it it called at cc_HELP command each cli must implement its own method base HelpDump display common help

Public Attributes

UInt32_t statusCode

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 284 of file cli_arg.h.


Constructor & Destructor Documentation

cfg_CliBak::cfg_CliBak ( UInt32_t  a_argc,
char *  a_argv[] 
)

Definition at line 1835 of file cfg_cliarg.cpp.

References val_RuleVec::Add(), ap_paStatusCode, dbg_DETAIL, cfg_CliBase::GetRules(), log_DBG_m, log_FUNC_m, ap_Argument::m_long, ap_Argument::Parse(), cfg_CliBase::Refresh(), and statusCode.

    : cfg_CliBase() {

    log_FUNC_m(cfg_CliBak);

    pf_ValueList parsed;
    ivdBak.Parse(a_argc, a_argv, parsed);

    log_DBG_m(dbg_DETAIL,
        "Parsed options: " << endl <<  parsed );

    GetRules().Add(
        new val_Integer(
            ap_paStatusCode.m_long, val_Limit(0, UINT_MAX)),
        this->statusCode
    );

    // Validate and convert options
    Refresh(parsed);
}

Here is the call graph for this function:

virtual cfg_CliBak::~cfg_CliBak (  )  [inline, virtual]

Definition at line 287 of file cli_arg.h.

{};


Member Function Documentation

void cfg_CliBak::HelpDump (  )  [virtual]

it it called at cc_HELP command each cli must implement its own method base HelpDump display common help

Reimplemented from cfg_CliBase.

Definition at line 1858 of file cfg_cliarg.cpp.

                          {
    cout << ivdBak << endl;
}


Member Data Documentation

Reimplemented from cfg_CliBase.

Definition at line 294 of file cli_arg.h.

Definition at line 287 of file cli_arg.h.

Referenced by cfg_CliBak(), and main().


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