retdec
pe_wrapper.h
Go to the documentation of this file.
1 
7 #ifndef FILEINFO_FILE_WRAPPER_PE_PE_WRAPPER_H
8 #define FILEINFO_FILE_WRAPPER_PE_PE_WRAPPER_H
9 
14 
15 namespace retdec {
16 namespace fileinfo {
17 
23 {
24  public:
25  PeWrapper(const std::string & pathToFile, const std::string & dllListFile, retdec::fileformat::LoadFlags loadFlags);
26 
27  std::uint32_t getBits()
28  {
29  return file->getBits();
30  }
31 
34  std::string getTypeOfFile() const;
35  std::string getPeType() const;
36  bool getDataDirectory(unsigned long long dirIndex, DataDirectory &directory) const;
37  bool getFileSection(unsigned long long secIndex, FileSection &section) const;
38  bool getCoffSymbol(unsigned long long index, Symbol &symbol) const;
40 };
41 
42 } // namespace fileinfo
43 } // namespace retdec
44 
45 #endif
unsigned int getBits() const
Definition: PeFile.h:181
LoadFlags loadFlags
load flags for configurable file loading
Definition: file_format.h:51
Definition: pe_format.h:28
PeLib::PeFileT * file
PeLib representation of PE file.
Definition: pe_format.h:114
Definition: data_directory.h:22
Definition: file_section.h:23
Definition: pe_wrapper.h:23
bool getDataDirectory(unsigned long long dirIndex, DataDirectory &directory) const
Definition: pe_wrapper.cpp:138
std::string getTypeOfFile() const
Definition: pe_wrapper.cpp:108
PeWrapper(const std::string &pathToFile, const std::string &dllListFile, retdec::fileformat::LoadFlags loadFlags)
Definition: pe_wrapper.cpp:97
bool getCoffSymbol(unsigned long long index, Symbol &symbol) const
Definition: pe_wrapper.cpp:211
std::uint32_t getBits()
Definition: pe_wrapper.h:27
bool getFileSection(unsigned long long secIndex, FileSection &section) const
Definition: pe_wrapper.cpp:160
std::string getPeType() const
Definition: pe_wrapper.cpp:117
Definition: symbol.h:22
Class for data directory.
Class for file section.
LoadFlags
Definition: fftypes.h:69
Definition: archive_wrapper.h:19
Definition of PeFormat class.
Class for one symol.