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

#include <intel_hex_detector.h>

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

Public Member Functions

 IntelHexDetector (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 getSections ()
 

Private Attributes

std::shared_ptr< retdec::fileformat::IntelHexFormatihexParser
 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

IntelHexDetector - find info about Intel HEX binary file

Constructor & Destructor Documentation

◆ IntelHexDetector()

retdec::fileinfo::IntelHexDetector::IntelHexDetector ( 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::IntelHexDetector::createCompilerDetector ( ) const
overrideprotectedvirtual

Pointer to detector is dynamically allocated and must be released (otherwise there is a memory leak) More detailed description of this method is in the super class

Implements retdec::fileinfo::FileDetector.

◆ detectArchitecture()

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

Detect of target architecture

Implements retdec::fileinfo::FileDetector.

◆ detectFileClass()

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

Detect class of file

Implements retdec::fileinfo::FileDetector.

◆ detectFileType()

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

Detect of type of file

Implements retdec::fileinfo::FileDetector.

◆ getAdditionalInfo()

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

Get additional information about file

Implements retdec::fileinfo::FileDetector.

◆ getSections()

void retdec::fileinfo::IntelHexDetector::getSections ( )
private

Get information about sections

Member Data Documentation

◆ ihexParser

std::shared_ptr<retdec::fileformat::IntelHexFormat> retdec::fileinfo::IntelHexDetector::ihexParser
private

file parser


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