retdec
coff_detector.h
Go to the documentation of this file.
1 
7 #ifndef FILEINFO_FILE_DETECTOR_COFF_DETECTOR_H
8 #define FILEINFO_FILE_DETECTOR_COFF_DETECTOR_H
9 
12 
13 namespace retdec {
14 namespace fileinfo {
15 
19 class CoffDetector : public FileDetector
20 {
21  private:
22  std::shared_ptr<CoffWrapper> coffParser;
23 
26  void getFileFlags();
27  void getHeaderInfo();
28  void getCoffSymbols();
29  void getCoffRelocations();
30  void getSections();
32  protected:
35  virtual void detectFileClass() override;
36  virtual void detectArchitecture() override;
37  virtual void detectFileType() override;
38  virtual void getAdditionalInfo() override;
41  public:
43  std::string pathToInputFile,
44  FileInformation &finfo,
47 };
48 
49 } // namespace fileinfo
50 } // namespace retdec
51 
52 #endif
Definition: cpdetect.h:24
Definition: coff_detector.h:20
void getSections()
Definition: coff_detector.cpp:242
virtual retdec::cpdetect::CompilerDetector * createCompilerDetector() const override
Definition: coff_detector.cpp:526
std::shared_ptr< CoffWrapper > coffParser
file parser
Definition: coff_detector.h:22
virtual void detectFileClass() override
Definition: coff_detector.cpp:367
virtual void detectArchitecture() override
Definition: coff_detector.cpp:379
void getHeaderInfo()
Definition: coff_detector.cpp:153
void getCoffSymbols()
Definition: coff_detector.cpp:162
void getCoffRelocations()
Definition: coff_detector.cpp:205
virtual void getAdditionalInfo() override
Definition: coff_detector.cpp:514
virtual void detectFileType() override
Definition: coff_detector.cpp:509
CoffDetector(std::string pathToInputFile, FileInformation &finfo, retdec::cpdetect::DetectParams &searchPar, retdec::fileformat::LoadFlags loadFlags)
Definition: coff_detector.cpp:92
void getFileFlags()
Definition: coff_detector.cpp:106
Definition: file_detector.h:21
retdec::fileformat::LoadFlags loadFlags
load flags for configurable running
Definition: file_detector.h:47
Definition: file_information.h:25
Definition of CoffWrapper class.
Definition of FileDetector class.
LoadFlags
Definition: fftypes.h:69
Definition: archive_wrapper.h:19
Definition: cptypes.h:110