retdec
format_factory.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_FILEFORMAT_FORMAT_FACTORY_H
8 #define RETDEC_FILEFORMAT_FORMAT_FACTORY_H
9 
10 #include <memory>
11 
13 
14 namespace retdec {
15 namespace fileformat {
16 
17 std::unique_ptr<FileFormat> createFileFormat(
18  const std::string &filePath,
19  const std::string &dllListFile,
20  bool isRaw = false,
22 
23 std::unique_ptr<FileFormat> createFileFormat(
24  const std::string &filePath,
25  bool isRaw = false,
27 
28 std::unique_ptr<FileFormat> createFileFormat(
29  std::istream &inputStream,
30  bool isRaw = false,
32 
33 std::unique_ptr<FileFormat> createFileFormat(
34  const std::uint8_t *data,
35  std::size_t size,
36  bool isRaw = false,
38 
39 } // namespace fileformat
40 } // namespace retdec
41 
42 #endif
Definition of FileFormat class.
LoadFlags
Definition: fftypes.h:69
@ NONE
Definition: fftypes.h:70
std::unique_ptr< FileFormat > createFileFormat(const std::string &filePath, const std::string &dllListFile, bool isRaw=false, LoadFlags loadFlags=LoadFlags::NONE)
Definition: format_factory.cpp:29
Definition: archive_wrapper.h:19
constexpr LoadFlags loadFlags
Definition: pattern_extractor.cpp:18