Public Member Functions | Public Attributes | Private Attributes

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.

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

Detailed Description

Definition at line 37 of file ivd_fstest.h.


Constructor & Destructor Documentation

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

Definition at line 138 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().

                                                              : cfg_CliBase(),
                                    m_recursive(false),m_read(false),m_write(false){

    log_FUNC_m(cfg_CliFsTest);

    /* recursive and verbose are disabled by default */


    pf_ValueList parsed;
    char** args = LocaleToUTF8Argv(a_argc, a_argv);
    ivd_fstest.Parse(a_argc, args, parsed);
    FreeUTF8Argv(a_argc, args);
    
    log_DBG_m(dbg_DETAIL,
        "Parsed options: " << endl <<  parsed );

    GetRules().Add(
        new val_Path(
        ap_omPath.m_long, val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_path
    );

    /* CreateTree */
    GetRules().Add(
        new val_Integer(
        ap_paDirs.m_long,val_Limit(1, UINT_MAX)),
        this->m_dirs
    );
    
    GetRules().Add(
        new val_Integer(
        ap_paDepth.m_long, val_Limit(1, UINT_MAX)),
        this->m_depth    
    );

    GetRules().Add(
        new val_Integer(
        ap_paFiles.m_long, val_Limit(0, UINT_MAX)),
        this->m_files
    );

    GetRules().Add(
        new val_Size( 
        ap_paFileSize.m_long, val_Limit(0, cfg_TERABYTE)),
        this->m_fileSize
    );
    
    GetRules().Add(
        new val_String(
        ap_paSuffix.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_suffix
    );
    /* CreateTree */
    
    GetRules().Add(
        new val_Bool(
        ap_ooRecursive.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_recursive
    );

    /* RecAccess */
    GetRules().Add(
        new val_Bool(
        ap_ooAccessOpen.m_long, val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_open
    );
    
    GetRules().Add(
        new val_Bool(
        ap_ooAccessRead.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_read
    );
    GetRules().Add(
        new val_Bool(
        ap_ooAccessWrite.m_long,val_Limit(cfg_MIN_PATHNAME, cfg_MAX_CLI_ARGLEN)),
        this->m_write
    );
    GetRules().Add(
        new val_Integer(
        ap_paAccessReadSize.m_long, val_Limit(1, UINT_MAX)),
        this->m_rsize
    );
    GetRules().Add(
        new val_Integer(
        ap_paAccessWriteSize.m_long, val_Limit(1, UINT_MAX)),
        this->m_wsize
    );
    GetRules().Add(
        new val_String(
        ap_paCharToWrite.m_long,val_Limit(1, 1)),
        this->m_charToWrite
    );
   /* RecAccess */
    
    Refresh(parsed);
}

Here is the call graph for this function:

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

Definition at line 40 of file ivd_fstest.h.

{};


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 132 of file ivd_fstest.cpp.

                             {
    cout << ivd_fstest << endl;
    cfg_CliBase::HelpDump();
}


Member Data Documentation

Reimplemented from cfg_CliBase.

Definition at line 59 of file ivd_fstest.h.

Definition at line 56 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 46 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 48 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 47 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 45 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 55 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 44 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 53 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 52 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 49 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 51 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 54 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().

Definition at line 50 of file ivd_fstest.h.

Referenced by _tmain(), and cfg_CliFsTest().


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