val_CliCommand Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_CliCommand:

Inheritance graph
[legend]
Collaboration diagram for val_CliCommand:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 685 of file val.h.


Public Member Functions

 val_CliCommand (const string &a_name, const val_Limit a_limits, const UInt32_t a_minNumOfVal=1, const UInt64_t a_maxNumOfVal=cfg_INFINITE)
virtual ~val_CliCommand ()
virtual void Bind (ivd_CliCommand_e &a_dest)

Private Member Functions

virtual void Assign (const string &a_strVal)

Private Attributes

ivd_CliCommand_em_cliCmd_p
 log_CLASSID_m

Constructor & Destructor Documentation

val_CliCommand::val_CliCommand ( const string &  a_name,
const val_Limit  a_limits,
const UInt32_t  a_minNumOfVal = 1,
const UInt64_t  a_maxNumOfVal = cfg_INFINITE 
)

Definition at line 973 of file cfg_cliarg.cpp.

00978   : val_Value(a_name, a_limits, a_minNumOfVal, a_maxNumOfVal),
00979     m_cliCmd_p(NULL) {
00980     // Empty
00981 }

val_CliCommand::~val_CliCommand (  )  [virtual]

Definition at line 983 of file cfg_cliarg.cpp.

00983                                 {
00984     //Empty
00985 }


Member Function Documentation

void val_CliCommand::Bind ( ivd_CliCommand_e a_dest  )  [virtual]

Definition at line 987 of file cfg_cliarg.cpp.

References log_FUNC_m, and m_cliCmd_p.

00987                                                   {
00988     log_FUNC_m(Bind);
00989     m_cliCmd_p = &(a_dest);
00990 }

void val_CliCommand::Assign ( const string &  a_strVal  )  [private, virtual]

Implements val_BasicValue.

Definition at line 992 of file cfg_cliarg.cpp.

References log_FUNC_m, and m_cliCmd_p.

00992                                                   {
00993     log_FUNC_m(Assign);
00994 
00995 //    *m_cliCmd_p = ap_GetCommandType(a_strVal);
00996     *m_cliCmd_p = (ivd_CliCommand_e)atoi(a_strVal.c_str());
00997 }


Member Data Documentation

Definition at line 701 of file val.h.

Referenced by Assign(), and Bind().

Reimplemented from val_Value.

Definition at line 703 of file val.h.


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

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