retdec
Public Member Functions | Private Attributes | List of all members
retdec::fileinfo::RawDataDetector Class Reference

#include <raw_data_detector.h>

Inheritance diagram for retdec::fileinfo::RawDataDetector:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileinfo::RawDataDetector:
Collaboration graph
[legend]

Public Member Functions

 RawDataDetector (std::string pathToInputFile, FileInformation &finfo, retdec::cpdetect::DetectParams &searchPar, retdec::fileformat::LoadFlags loadFlags)
 
- Public Member Functions inherited from retdec::fileinfo::FileDetector
 FileDetector (const std::string &pathToInputFile, FileInformation &finfo, retdec::cpdetect::DetectParams &searchPar, retdec::fileformat::LoadFlags loadFlags)
 
virtual ~FileDetector ()=default
 
void setConfigFile (retdec::config::Config &config)
 
void getAllInformation ()
 
const retdec::fileformat::FileFormatgetFileParser () const
 

Protected Member Functions

Detection methods
virtual void detectFileClass () override
 
virtual void detectArchitecture () override
 
virtual void detectFileType () override
 
virtual void getAdditionalInfo () override
 
virtual retdec::cpdetect::CompilerDetectorcreateCompilerDetector () const override
 
Pure virtual detection methods

Private Member Functions

Auxiliary detection methods
void getSection ()
 

Private Attributes

std::shared_ptr< retdec::fileformat::RawDataFormatrawParser
 file parser More...
 

Additional Inherited Members

- Protected Attributes inherited from retdec::fileinfo::FileDetector
FileInformationfileInfo
 information about file More...
 
retdec::cpdetect::DetectParamscpParams
 parameters for detection of used compiler More...
 
retdec::config::ConfigfileConfig
 configuration of input file More...
 
std::shared_ptr< retdec::fileformat::FileFormatfileParser
 parser of input file More...
 
retdec::fileformat::LoadFlags loadFlags
 load flags for configurable running More...
 
bool loaded
 internal state of instance More...
 

Detailed Description

RawDataDetector - find info about raw binary

Constructor & Destructor Documentation

◆ RawDataDetector()

retdec::fileinfo::RawDataDetector::RawDataDetector ( std::string  pathToInputFile,
FileInformation finfo,
retdec::cpdetect::DetectParams searchPar,
retdec::fileformat::LoadFlags  loadFlags 
)

Constructor

Parameters
pathToInputFilePath to input file
finfoInstance of class for storing information about file
searchParParameters for detection of used compiler (or packer)
loadFlagsLoad flags

Member Function Documentation

◆ createCompilerDetector()

retdec::cpdetect::CompilerDetector * retdec::fileinfo::RawDataDetector::createCompilerDetector ( ) const
overrideprotectedvirtual

Factory for creating detector of compilers

Returns
Instance of compiler detector or nullptr if detection of compiler is not supported for actual file format

Implements retdec::fileinfo::FileDetector.

◆ detectArchitecture()

void retdec::fileinfo::RawDataDetector::detectArchitecture ( )
overrideprotectedvirtual

Detect of target architecture

Implements retdec::fileinfo::FileDetector.

◆ detectFileClass()

void retdec::fileinfo::RawDataDetector::detectFileClass ( )
overrideprotectedvirtual

Detect class of file

Implements retdec::fileinfo::FileDetector.

◆ detectFileType()

void retdec::fileinfo::RawDataDetector::detectFileType ( )
overrideprotectedvirtual

Detect of type of file

Implements retdec::fileinfo::FileDetector.

◆ getAdditionalInfo()

void retdec::fileinfo::RawDataDetector::getAdditionalInfo ( )
overrideprotectedvirtual

Get additional information about file

Implements retdec::fileinfo::FileDetector.

◆ getSection()

void retdec::fileinfo::RawDataDetector::getSection ( )
private

Get information about sections

Member Data Documentation

◆ rawParser

std::shared_ptr<retdec::fileformat::RawDataFormat> retdec::fileinfo::RawDataDetector::rawParser
private

file parser


The documentation for this class was generated from the following files: