File: extract.hpp

package info (click to toggle)
unrar-nonfree 1%3A3.5.4-1.1
  • links: PTS
  • area: non-free
  • in suites: etch
  • size: 884 kB
  • ctags: 2,391
  • sloc: cpp: 16,784; makefile: 28
file content (40 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _RAR_EXTRACT_
#define _RAR_EXTRACT_

enum EXTRACT_ARC_CODE {EXTRACT_ARC_NEXT,EXTRACT_ARC_REPEAT};

class CmdExtract
{
  private:
    ComprDataIO DataIO;
    Unpack *Unp;
    long TotalFileCount;

    long FileCount;
    long MatchedArgs;
    bool FirstFile;
    bool AllMatchesExact;
    bool ReconstructDone;

    char ArcName[NM];
    wchar ArcNameW[NM];

    char Password[MAXPASSWORD];
    bool PasswordAll;
    bool PrevExtracted;
    bool SignatureFound;
    char DestFileName[NM];
    wchar DestFileNameW[NM];
    bool PasswordCancelled;
  public:
    CmdExtract();
    ~CmdExtract();
    void DoExtract(CommandData *Cmd);
    void ExtractArchiveInit(CommandData *Cmd,Archive &Arc);
    EXTRACT_ARC_CODE ExtractArchive(CommandData *Cmd);
    bool ExtractCurrentFile(CommandData *Cmd,Archive &Arc,int HeaderSize,
                            bool &Repeat);
    static void UnstoreFile(ComprDataIO &DataIO,Int64 DestUnpSize);
};

#endif