unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cmddata.hpp
Go to the documentation of this file.
1#ifndef _RAR_CMDDATA_
2#define _RAR_CMDDATA_
3
4
5#define DefaultStoreList L"7z;ace;arj;bz2;cab;gz;jpeg;jpg;lha;lz;lzh;mp3;rar;taz;tgz;xz;z;zip;zipx"
6
8
10
12{
13 private:
14 void ProcessSwitch(const wchar *Switch);
15 void BadSwitch(const wchar *Switch);
16 uint GetExclAttr(const wchar *Str,bool &Dir);
17#if !defined(SFX_MODULE)
18 void SetTimeFilters(const wchar *Mod,bool Before,bool Age);
19 void SetStoreTimeMode(const wchar *S);
20#endif
21
26 public:
28 void Init();
29
30 void ParseCommandLine(bool Preprocess,int argc, char *argv[]);
31 void ParseArg(wchar *ArgW);
32 void ParseDone();
33 void ParseEnvVar();
34 void ReadConfig();
35 void PreprocessArg(const wchar *Arg);
36 void ProcessSwitchesString(const wchar *Str);
37 void OutTitle();
38 void OutHelp(RAR_EXIT ExitCode);
39 bool IsSwitch(int Ch);
40 bool ExclCheck(const wchar *CheckName,bool Dir,bool CheckFullPath,bool CheckInclList);
41 static bool CheckArgs(StringList *Args,bool Dir,const wchar *CheckName,bool CheckFullPath,int MatchMode);
42 bool ExclDirByAttr(uint FileAttr);
43 bool TimeCheck(RarTime &ftm,RarTime &ftc,RarTime &fta);
44 bool SizeCheck(int64 Size);
46 int IsProcessFile(FileHeader &FileHead,bool *ExactMatch,int MatchType,
47 bool Flags,wchar *MatchedArg,uint MatchedArgSize);
48 void ProcessCommand();
49 void AddArcName(const wchar *Name);
50 bool GetArcName(wchar *Name,int MaxSize);
51 bool CheckWinSize();
52
53 int GetRecoverySize(const wchar *CmdStr,const wchar *Value,int DefSize);
54
55#ifndef SFX_MODULE
56 void ReportWrongSwitches(RARFORMAT Format);
57#endif
58
59 wchar Command[NM+16];
60
62
68};
69
70#endif
RARFORMAT
Definition: archive.hpp:13
void ReadConfig()
Definition: cmddata.cpp:227
bool BareOutput
Definition: cmddata.hpp:25
void SetStoreTimeMode(const wchar *S)
Definition: cmdfilter.cpp:314
void ParseArg(wchar *ArgW)
Definition: cmddata.cpp:92
uint GetExclAttr(const wchar *Str, bool &Dir)
Definition: cmddata.cpp:1029
void AddArcName(const wchar *Name)
Definition: cmddata.cpp:1006
bool ExclCheck(const wchar *CheckName, bool Dir, bool CheckFullPath, bool CheckInclList)
Definition: cmdfilter.cpp:4
void BadSwitch(const wchar *Switch)
Definition: cmddata.cpp:927
void SetTimeFilters(const wchar *Mod, bool Before, bool Age)
Definition: cmdfilter.cpp:127
static bool CheckArgs(StringList *Args, bool Dir, const wchar *CheckName, bool CheckFullPath, int MatchMode)
Definition: cmdfilter.cpp:16
int GetRecoverySize(const wchar *CmdStr, const wchar *Value, int DefSize)
StringList StoreArgs
Definition: cmddata.hpp:67
void ParseCommandLine(bool Preprocess, int argc, char *argv[])
Definition: cmddata.cpp:51
bool AnyFiltersActive()
void OutHelp(RAR_EXIT ExitCode)
Definition: cmdmix.cpp:51
void PreprocessArg(const wchar *Arg)
Definition: cmddata.cpp:195
bool SizeCheck(int64 Size)
Definition: cmdfilter.cpp:263
StringList InclArgs
Definition: cmddata.hpp:65
RAR_CMD_LIST_MODE ListMode
Definition: cmddata.hpp:24
StringList ExclArgs
Definition: cmddata.hpp:64
void ReportWrongSwitches(RARFORMAT Format)
Definition: cmddata.cpp:1086
bool CheckWinSize()
Definition: cmddata.cpp:1071
void OutTitle()
Definition: cmdmix.cpp:1
StringList ArcNames
Definition: cmddata.hpp:66
wchar Command[NM+16]
Definition: cmddata.hpp:59
bool NoMoreSwitches
Definition: cmddata.hpp:23
void ProcessSwitch(const wchar *Switch)
Definition: cmddata.cpp:276
StringList FileArgs
Definition: cmddata.hpp:63
bool FileLists
Definition: cmddata.hpp:22
bool IsSwitch(int Ch)
Definition: cmddata.cpp:1018
void ProcessSwitchesString(const wchar *Str)
Definition: cmddata.cpp:262
void ParseEnvVar()
Definition: cmddata.cpp:178
bool GetArcName(wchar *Name, int MaxSize)
Definition: cmddata.cpp:1012
bool TimeCheck(RarTime &ftm, RarTime &ftc, RarTime &fta)
Definition: cmdfilter.cpp:192
int IsProcessFile(FileHeader &FileHead, bool *ExactMatch, int MatchType, bool Flags, wchar *MatchedArg, uint MatchedArgSize)
Definition: cmdfilter.cpp:279
void Init()
Definition: cmddata.cpp:12
void ParseDone()
Definition: cmddata.cpp:162
wchar ArcName[NM]
Definition: cmddata.hpp:61
void ProcessCommand()
Definition: cmddata.cpp:935
bool ExclDirByAttr(uint FileAttr)
Definition: cmdfilter.cpp:112
CommandData()
Definition: cmddata.cpp:6
RAR_CMD_LIST_MODE
Definition: cmddata.hpp:7
@ RCLM_ACCEPT_LISTS
Definition: cmddata.hpp:7
@ RCLM_AUTO
Definition: cmddata.hpp:7
@ RCLM_REJECT_LISTS
Definition: cmddata.hpp:7
IS_PROCESS_FILE_FLAGS
Definition: cmddata.hpp:9
@ IPFF_EXCLUDE_PARENT
Definition: cmddata.hpp:9
RAR_EXIT
Definition: errhnd.hpp:5
wchar_t wchar
Definition: rartypes.hpp:13
int64_t int64
Definition: rartypes.hpp:12
unsigned int uint
Definition: rartypes.hpp:8
static byte S[256]
Definition: rijndael.cpp:10
#define Ch(x, y, z)
Definition: sha256.cpp:26