File: tsk_comparedir.h

package info (click to toggle)
sleuthkit 4.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,248 kB
  • sloc: ansic: 142,208; cpp: 50,346; java: 27,140; xml: 2,419; perl: 882; python: 508; makefile: 416; sh: 184
file content (32 lines) | stat: -rw-r--r-- 815 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
#ifndef _TSK_COMPAREDIR_H
#define _TSK_COMPAREDIR_H

#include <set>
#include <stdlib.h>

struct ltstr
{
  bool operator()(char* s1, char* s2) const
  {
    return strcmp(s1, s2) > 0;
  }
};

class TskCompareDir : public TskAuto {
public:
    uint8_t compareDirs(TSK_INUM_T inum, const TSK_TCHAR * lcl_dir);
    uint8_t openFs(TSK_OFF_T a_soffset, TSK_FS_TYPE_ENUM fstype, TSK_POOL_TYPE_ENUM pooltype, TSK_DADDR_T pvol_block);
    virtual uint8_t handleError();

private:
    std::set<char*, ltstr> m_filesInImg; 
    bool m_missDirFile;
    const TSK_TCHAR *m_lclDir;
    TSK_FS_INFO * m_fs_info;
    
    virtual TSK_RETVAL_ENUM processFile(TSK_FS_FILE * fs_file, const char *path); 
	virtual TSK_FILTER_ENUM filterVol(const TSK_VS_PART_INFO * vs_part);
    uint8_t processLclDir(const TSK_TCHAR *dir);
};

#endif