#include <cli_arg.h>


Definition at line 330 of file cli_arg.h.
Public Member Functions | |
| cfg_CliDD (UInt32_t a_argc, char *a_argv[]) | |
| virtual | ~cfg_CliDD () |
| 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 | device |
| string | fileName |
| tape device | |
| string | restoreDir |
| file or named pipe/fifo | |
| UInt32_t | blkSize |
| location for restoring files | |
| string | md5Sum |
| block size for transfer to tape | |
| string | timeStamp |
| md5 file id | |
| UInt32_t | offset |
| time stamp of the file to be backed up | |
| UInt32_t | numBackup |
| Offset from the last successful backup. | |
Private Attributes | |
| log_CLASSID_m | |
| Number of backups to restore. | |
| cfg_CliDD::cfg_CliDD | ( | UInt32_t | a_argc, | |
| char * | a_argv[] | |||
| ) |
Definition at line 1991 of file cfg_cliarg.cpp.
References val_RuleVec::Add(), ap_paBlockSize, ap_paDevice, ap_paFileName, ap_paMd5Sum, ap_paRestoreDir, ap_paTimeStamp, ap_poBlockSize, ap_poCount, ap_poOffset, blkSize, cfg_MAX_BACKUP_NUM, cfg_MAX_BLOCK_SIZE_KB, cfg_MAX_PATHNAME, cfg_MD5SUM_LEN, cfg_MIN_BACKUP_NUM, cfg_MIN_BLOCK_SIZE_KB, cfg_TIME_STAMP_LEN, dbg_DETAIL, device, fileName, cfg_CliBase::GetRules(), log_DBG_m, log_FUNC_m, ap_Argument::m_long, md5Sum, numBackup, offset, ap_Argument::Parse(), cfg_CliBase::Refresh(), restoreDir, and timeStamp.
01992 : cfg_CliBase(), 01993 blkSize(0), 01994 offset(0), 01995 numBackup(0) { 01996 01997 log_FUNC_m(cfg_CliDD); 01998 01999 pf_ValueList parsed; 02000 ivdDD.Parse(a_argc, a_argv, parsed); 02001 02002 GetRules().Add( 02003 new val_Path( 02004 ap_paDevice.m_long, val_Limit(1, cfg_MAX_PATHNAME)), 02005 this->device 02006 ); 02007 02008 GetRules().Add( 02009 new val_Path( 02010 ap_paFileName.m_long, val_Limit(0, cfg_MAX_PATHNAME)), 02011 this->fileName 02012 ); 02013 02014 GetRules().Add( 02015 new val_Path( 02016 ap_paRestoreDir.m_long, val_Limit(0, cfg_MAX_PATHNAME)), 02017 this->restoreDir 02018 ); 02019 02020 GetRules().Add( 02021 new val_String( 02022 ap_paMd5Sum.m_long, val_Limit(cfg_MD5SUM_LEN, cfg_MD5SUM_LEN)), 02023 this->md5Sum 02024 ); 02025 02026 GetRules().Add( 02027 new val_String( 02028 ap_paTimeStamp.m_long, val_Limit(cfg_TIME_STAMP_LEN, cfg_TIME_STAMP_LEN)), 02029 this->timeStamp 02030 ); 02031 02032 GetRules().Add( 02033 new val_Integer( 02034 ap_paBlockSize.m_long, 02035 val_Limit(cfg_MIN_BLOCK_SIZE_KB, cfg_MAX_BLOCK_SIZE_KB)), 02036 this->blkSize 02037 ); 02038 02039 GetRules().Add( 02040 new val_Integer( 02041 ap_poBlockSize.m_long, 02042 val_Limit(cfg_MIN_BLOCK_SIZE_KB, cfg_MAX_BLOCK_SIZE_KB), 1, 1, "32"), 02043 this->blkSize 02044 ); 02045 02046 GetRules().Add( 02047 new val_Integer( 02048 ap_poOffset.m_long, val_Limit(cfg_MIN_BACKUP_NUM, cfg_MAX_BACKUP_NUM), 0, 1, "0"), 02049 this->offset 02050 ); 02051 02052 GetRules().Add( 02053 new val_Integer( 02054 ap_poCount.m_long, val_Limit(cfg_MIN_BACKUP_NUM, cfg_MAX_BACKUP_NUM), 0, 1, "0"), 02055 this->numBackup 02056 ); 02057 02058 log_DBG_m(dbg_DETAIL, 02059 "Parsed options: " << endl << parsed ); 02060 02061 // Validate and convert options 02062 Refresh(parsed); 02063 }

| virtual cfg_CliDD::~cfg_CliDD | ( | ) | [inline, virtual] |
| void cfg_CliDD::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 2067 of file cfg_cliarg.cpp.
02067 { 02068 cout << ivdDD << endl; 02069 }
| string cfg_CliDD::device |
| string cfg_CliDD::fileName |
| string cfg_CliDD::restoreDir |
file or named pipe/fifo
Definition at line 339 of file cli_arg.h.
Referenced by cfg_CliDD(), and main().
location for restoring files
Definition at line 340 of file cli_arg.h.
Referenced by cfg_CliDD(), and main().
| string cfg_CliDD::md5Sum |
block size for transfer to tape
Definition at line 341 of file cli_arg.h.
Referenced by cfg_CliDD(), and main().
| string cfg_CliDD::timeStamp |
time stamp of the file to be backed up
Definition at line 343 of file cli_arg.h.
Referenced by cfg_CliDD(), and main().
Offset from the last successful backup.
Definition at line 344 of file cli_arg.h.
Referenced by cfg_CliDD(), and main().
cfg_CliDD::log_CLASSID_m [private] |
1.5.6