Public Member Functions | Public Attributes | Private Attributes

cfg_CliLibrary Class Reference
[Parser for config files; validation]

#include <cli_arg.h>

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

List of all members.

Public Member Functions

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

Public Attributes

bool rescan
bool force

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 167 of file cli_arg.h.


Constructor & Destructor Documentation

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

Definition at line 1475 of file cfg_cliarg.cpp.

References val_RuleVec::Add(), ap_ooForce, ap_ooRescan, cfg_MAX_CLI_ARGLEN, cfg_MIN_CLI_ARGLEN, dbg_DETAIL, force, cfg_CliBase::GetRules(), log_DBG_m, log_FUNC_m, ap_Argument::m_long, ap_Argument::Parse(), cfg_CliBase::Refresh(), and rescan.

    : cfg_CliBase(),
      rescan(false),
      force(false) {

    log_FUNC_m(cfg_CliLibrary);

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

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

    GetRules().Add(
        new val_Bool(
            ap_ooRescan.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
        this->rescan
    );

    GetRules().Add(
        new val_Bool(
            ap_ooForce.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
        this->force
    );

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

Here is the call graph for this function:

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

Definition at line 170 of file cli_arg.h.

{};


Member Function Documentation

void cfg_CliLibrary::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 1506 of file cfg_cliarg.cpp.

                              {
    cout << ivdLibrary << endl;
}


Member Data Documentation

Definition at line 173 of file cli_arg.h.

Referenced by cfg_CliLibrary(), and main().

Reimplemented from cfg_CliBase.

Definition at line 177 of file cli_arg.h.

Definition at line 170 of file cli_arg.h.

Referenced by cfg_CliLibrary(), and main().


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