cfg_CliFsTest Class Reference

#include <ivd_fstest.h>

Inheritance diagram for cfg_CliFsTest:

Inheritance graph
[legend]
Collaboration diagram for cfg_CliFsTest:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 23 of file ivd_fstest.h.


Public Member Functions

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

Public Attributes

cmn_Path m_path
UInt64_t m_fileSize
UInt32_t m_depth
UInt32_t m_files
UInt32_t m_dirs
UInt32_t m_rsize
UInt32_t m_wsize
string m_suffix
bool m_recursive
bool m_read
bool m_write
bool m_open
string m_charToWrite

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

cfg_CliFsTest::cfg_CliFsTest ( UInt32_t  a_argc,
_TCHAR *  a_argv[] 
)

Definition at line 124 of file ivd_fstest.cpp.

References val_RuleVec::Add(), ap_ooRecursive, ap_paAccessReadSize, ap_paAccessWriteSize, ap_paCharToWrite, ap_paDepth, ap_paDirs, ap_paFiles, ap_paFileSize, ap_paSuffix, cfg_MAX_CLI_ARGLEN, cfg_MIN_PATHNAME, cfg_TERABYTE, dbg_DETAIL, cfg_CliBase::FreeUTF8Argv(), cfg_CliBase::GetRules(), cfg_CliBase::LocaleToUTF8Argv(), log_DBG_m, log_FUNC_m, m_charToWrite, m_depth, m_dirs, m_files, m_fileSize, ap_Argument::m_long, m_open, m_path, m_read, m_recursive, m_rsize, m_suffix, m_write, m_wsize, ap_Argument::Parse(), and cfg_CliBase::Refresh().

00124                                                               : cfg_CliBase(),
00125                                     m_recursive(false),m_read(false),m_write(false){
00126 
00127     log_FUNC_m(cfg_CliFsTest);
00128 
00129     /* recursive and verbose are disabled by default */
00130 
00131 
00132     pf_ValueList parsed;
00133     char** args = LocaleToUTF8Argv(a_argc, a_argv);
00134     ivd_fstest.Parse(a_argc, args, parsed);
00135     FreeUTF8Argv(a_argc, args);
00136     
00137     log_DBG_m(dbg_DETAIL,
00138         "Parsed options: " << endl <<  parsed );
00139 
00140     GetRules().Add(
00141         new val_Path(
00142         ap_omPath.m_long, val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00143         this->m_path
00144     );
00145 
00146     /* CreateTree */
00147     GetRules().Add(
00148         new val_Integer(
00149         ap_paDirs.m_long,val_Limit(1, UINT_MAX)),
00150         this->m_dirs
00151     );
00152     
00153     GetRules().Add(
00154         new val_Integer(
00155         ap_paDepth.m_long, val_Limit(1, UINT_MAX)),
00156         this->m_depth    
00157     );
00158 
00159     GetRules().Add(
00160         new val_Integer(
00161         ap_paFiles.m_long, val_Limit(0, UINT_MAX)),
00162         this->m_files
00163     );
00164 
00165     GetRules().Add(
00166         new val_Size( 
00167         ap_paFileSize.m_long, val_Limit(0, cfg_TERABYTE)),
00168         this->m_fileSize
00169     );
00170     
00171     GetRules().Add(
00172         new val_String(
00173         ap_paSuffix.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00174         this->m_suffix
00175     );
00176     /* CreateTree */
00177     
00178     GetRules().Add(
00179         new val_Bool(
00180         ap_ooRecursive.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00181         this->m_recursive
00182     );
00183 
00184     /* RecAccess */
00185     GetRules().Add(
00186         new val_Bool(
00187         ap_ooAccessOpen.m_long, val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00188         this->m_open
00189     );
00190     
00191     GetRules().Add(
00192         new val_Bool(
00193         ap_ooAccessRead.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00194         this->m_read
00195     );
00196     GetRules().Add(
00197         new val_Bool(
00198         ap_ooAccessWrite.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
00199         this->m_write
00200     );
00201     GetRules().Add(
00202         new val_Integer(
00203         ap_paAccessReadSize.m_long, val_Limit(1, UINT_MAX)),
00204         this->m_rsize
00205     );
00206     GetRules().Add(
00207         new val_Integer(
00208         ap_paAccessWriteSize.m_long, val_Limit(1, UINT_MAX)),
00209         this->m_wsize
00210     );
00211     GetRules().Add(
00212         new val_String(
00213         ap_paCharToWrite.m_long,val_Limit(1, 1)),
00214         this->m_charToWrite
00215     );
00216    /* RecAccess */
00217     
00218     Refresh(parsed);
00219 }

Here is the call graph for this function:

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

Definition at line 26 of file ivd_fstest.h.

00026 {};


Member Function Documentation

void cfg_CliFsTest::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 118 of file ivd_fstest.cpp.

References cfg_CliBase::HelpDump().

00118                              {
00119     cout << ivd_fstest << endl;
00120     cfg_CliBase::HelpDump();
00121 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 30 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 31 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 32 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 33 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 34 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 35 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 36 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 37 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 38 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 39 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 40 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 41 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 42 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Reimplemented from cfg_CliBase.

Definition at line 45 of file ivd_fstest.h.


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

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