cfg_CliSystem Class Reference
[Parser for config files; validation]

#include <cli_arg.h>

Inheritance diagram for cfg_CliSystem:

Inheritance graph
[legend]
Collaboration diagram for cfg_CliSystem:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 231 of file cli_arg.h.


Public Member Functions

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

Public Attributes

string sysDbgLevel
string sysDbgFlags
string sysDbgPath
string sysDbgIVDFS

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

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

Definition at line 1673 of file cfg_cliarg.cpp.

References val_RuleVec::Add(), ap_paSysDbgIVDFS, cfg_MAX_CLI_ARGLEN, dbg_DETAIL, cfg_CliBase::GetRules(), log_DBG_m, log_FUNC_m, ap_Argument::m_long, ap_Argument::Parse(), cfg_CliBase::Refresh(), sysDbgFlags, sysDbgIVDFS, sysDbgLevel, and sysDbgPath.

01674     : cfg_CliBase() {
01675 
01676     log_FUNC_m(cfg_CliSystem);
01677 
01678     pf_ValueList parsed;
01679     ivdSystem.Parse(a_argc, a_argv, parsed);
01680 
01681     log_DBG_m(dbg_DETAIL,
01682         "Parsed options: " << endl <<  parsed );
01683 
01684     GetRules().Add(
01685         new val_StrictString(
01686             ap_paSysDbgLevel.m_long, val_Limit(1, 1)),
01687         this->sysDbgLevel
01688     );
01689     GetRules().Add(
01690         new val_Path(
01691             ap_paSysDbgPath.m_long, val_Limit(0, cfg_MAX_CLI_ARGLEN)),
01692         this->sysDbgPath
01693     );
01694     GetRules().Add(
01695         new val_StrictString(
01696             ap_paSysDbgFlags.m_long, val_Limit(0, 10)),
01697         this->sysDbgFlags
01698     );
01699     GetRules().Add(
01700         new val_StrictString(
01701             ap_paSysDbgIVDFS.m_long, val_Limit(0, 10)),
01702         this->sysDbgIVDFS
01703     );
01704 
01705 
01706     // Validate and convert options
01707     Refresh(parsed);
01708 }

Here is the call graph for this function:

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

Definition at line 234 of file cli_arg.h.

00234 {};


Member Function Documentation

void cfg_CliSystem::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 1711 of file cfg_cliarg.cpp.

01711                              {
01712     cout << ivdSystem << endl;
01713 }


Member Data Documentation

Definition at line 238 of file cli_arg.h.

Referenced by cfg_CliSystem(), and main().

Definition at line 239 of file cli_arg.h.

Referenced by cfg_CliSystem(), and main().

Definition at line 240 of file cli_arg.h.

Referenced by cfg_CliSystem(), and main().

Definition at line 241 of file cli_arg.h.

Referenced by cfg_CliSystem(), and main().

Reimplemented from cfg_CliBase.

Definition at line 244 of file cli_arg.h.


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

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