cfg_CliPartition Class Reference
[Parser for config files; validation]

#include <cli_arg.h>

Inheritance diagram for cfg_CliPartition:

Inheritance graph
[legend]
Collaboration diagram for cfg_CliPartition:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 249 of file cli_arg.h.


Public Member Functions

 cfg_CliPartition (UInt32_t a_argc, char *a_argv[])
virtual ~cfg_CliPartition ()
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
ivd_Time32_t m_reorgTime
UInt32_t m_numOfGen
UInt32_t m_threshold

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

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

Definition at line 1718 of file cfg_cliarg.cpp.

References val_RuleVec::Add(), ap_ooForce, ap_poThreshold, cfg_MAX_CLI_ARGLEN, cfg_MIN_CLI_ARGLEN, dbg_DETAIL, force, cfg_CliBase::GetRules(), log_DBG_m, log_FUNC_m, ap_Argument::m_long, m_numOfGen, m_reorgTime, m_threshold, ap_Argument::Parse(), and cfg_CliBase::Refresh().

01719     : cfg_CliBase(),
01720       force(false),
01721       m_reorgTime(0),
01722       m_numOfGen(0),
01723       m_threshold(0) {
01724 
01725     log_FUNC_m(cfg_CliPartition);
01726 
01727     pf_ValueList parsed;
01728     ivdPartition.Parse(a_argc, a_argv, parsed);
01729 
01730     log_DBG_m(dbg_DETAIL,
01731         "Parsed options: " << endl <<  parsed );
01732     //cout << "Parsed options: " << endl <<  parsed;
01733 
01734     GetRules().Add(
01735         new val_Bool(
01736             ap_ooForce.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
01737         this->force
01738     );
01739     GetRules().Add(
01740         new val_Time(
01741             ap_paReorgTime.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
01742         this->m_reorgTime
01743     );
01744     GetRules().Add(
01745         new val_Integer(
01746         ap_poReordNumOfGen.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
01747         this->m_numOfGen
01748     );
01749     GetRules().Add(
01750         new val_Integer(
01751         ap_poThreshold.m_long,val_Limit(cfg_MIN_CLI_ARGLEN, cfg_MAX_CLI_ARGLEN)),
01752         this->m_threshold
01753     );
01754 
01755     // Validate and convert options
01756     Refresh(parsed);
01757 }

Here is the call graph for this function:

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

Definition at line 252 of file cli_arg.h.

00252 {};


Member Function Documentation

void cfg_CliPartition::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 1761 of file cfg_cliarg.cpp.

01761                                 {
01762     cout << ivdPartition << endl;
01763 }


Member Data Documentation

Definition at line 252 of file cli_arg.h.

Referenced by cfg_CliPartition(), and main().

Definition at line 256 of file cli_arg.h.

Referenced by cfg_CliPartition(), and main().

Definition at line 257 of file cli_arg.h.

Referenced by cfg_CliPartition(), and main().

Definition at line 258 of file cli_arg.h.

Referenced by cfg_CliPartition(), and main().

Reimplemented from cfg_CliBase.

Definition at line 262 of file cli_arg.h.


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

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