cfg_CliDrive Class Reference
[Parser for config files; validation]

#include <cli_arg.h>

Inheritance diagram for cfg_CliDrive:

Inheritance graph
[legend]
Collaboration diagram for cfg_CliDrive:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 168 of file cli_arg.h.


Public Member Functions

 cfg_CliDrive (UInt32_t a_argc, char *a_argv[])
virtual ~cfg_CliDrive ()
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 force

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

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

Definition at line 1459 of file cfg_cliarg.cpp.

References val_RuleVec::Add(), ap_ooForce, 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(), and cfg_CliBase::Refresh().

01460     : cfg_CliBase(),
01461         force(false) {
01462 
01463     log_FUNC_m(cfg_CliDrive);
01464 
01465     pf_ValueList parsed;
01466     ivdDrive.Parse(a_argc, a_argv, parsed);
01467 
01468     GetRules().Add(
01469         new val_Bool(
01470             ap_ooForce.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
01471         this->force
01472     );
01473 
01474     log_DBG_m(dbg_DETAIL,
01475         "Parsed options: " << endl <<  parsed );
01476 
01477     // Validate and convert options
01478     Refresh(parsed);
01479 }

Here is the call graph for this function:

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

Definition at line 171 of file cli_arg.h.

00171 {};


Member Function Documentation

void cfg_CliDrive::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 1483 of file cfg_cliarg.cpp.

01483                             {
01484     cout << ivdDrive << endl;
01485 }


Member Data Documentation

Definition at line 171 of file cli_arg.h.

Referenced by cfg_CliDrive(), and main().

Reimplemented from cfg_CliBase.

Definition at line 176 of file cli_arg.h.


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

Generated on Mon Feb 27 19:03:26 2012 for OPENARCHIVE by  doxygen 1.5.6