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

#include <plain_presentation.h>

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

Public Member Functions

 PlainPresentation (FileInformation &fileinfo_, bool verbose_, bool explanatory_)
 
virtual bool present () override
 
- Public Member Functions inherited from retdec::fileinfo::FilePresentation
 FilePresentation (FileInformation &fileinfo_)
 
virtual ~FilePresentation ()=default
 

Private Member Functions

Auxiliary presentation methods
void presentCompiler () const
 
void presentLanguages () const
 
void presentRichHeader () const
 
void presentOverlay () const
 
void presentPackingInfo () const
 
void presentSimpleFlags (const std::string &title, const std::string &flags, const std::vector< std::string > &desc, const std::vector< std::string > &abbv) const
 
void presentPatterns (const std::string &title, const std::vector< Pattern > &patterns)
 
void presentDotnetClasses () const
 
void presentVisualBasicObjects () const
 
void presentNotes () const
 
void presentCore () const
 

Private Attributes

bool verbose
 true - print all information about file More...
 
bool explanatory
 true - print explanatory notes More...
 

Additional Inherited Members

- Protected Attributes inherited from retdec::fileinfo::FilePresentation
FileInformationfileinfo
 class with information about file More...
 
retdec::cpdetect::ReturnCode returnCode
 return code of data member fileinfo More...
 

Detailed Description

Plain text presentation class

Constructor & Destructor Documentation

◆ PlainPresentation()

retdec::fileinfo::PlainPresentation::PlainPresentation ( FileInformation fileinfo_,
bool  verbose_,
bool  explanatory_ 
)

Constructor

Member Function Documentation

◆ present()

bool retdec::fileinfo::PlainPresentation::present ( )
overridevirtual

Present information about file

Returns
true if presentation went OK, false otherwise

Implements retdec::fileinfo::FilePresentation.

◆ presentCompiler()

void retdec::fileinfo::PlainPresentation::presentCompiler ( ) const
private

Present information about used compiler (or packer)

◆ presentCore()

void retdec::fileinfo::PlainPresentation::presentCore ( ) const
private

Present ELF core

◆ presentDotnetClasses()

void retdec::fileinfo::PlainPresentation::presentDotnetClasses ( ) const
private

◆ presentLanguages()

void retdec::fileinfo::PlainPresentation::presentLanguages ( ) const
private

Present information about original programming language(s)

◆ presentNotes()

void retdec::fileinfo::PlainPresentation::presentNotes ( ) const
private

Present ELF notes

◆ presentOverlay()

void retdec::fileinfo::PlainPresentation::presentOverlay ( ) const
private

Present information about overlay

◆ presentPackingInfo()

void retdec::fileinfo::PlainPresentation::presentPackingInfo ( ) const
private

Present information about packing

◆ presentPatterns()

void retdec::fileinfo::PlainPresentation::presentPatterns ( const std::string &  title,
const std::vector< Pattern > &  patterns 
)
private

Present detected patterns

Parameters
titleTitle of presented patterns
patternsDetected patterns

◆ presentRichHeader()

void retdec::fileinfo::PlainPresentation::presentRichHeader ( ) const
private

Present basic information about rich header

◆ presentSimpleFlags()

void retdec::fileinfo::PlainPresentation::presentSimpleFlags ( const std::string &  title,
const std::string &  flags,
const std::vector< std::string > &  desc,
const std::vector< std::string > &  abbv 
) const
private

Print information about flags

Parameters
titleFlags title
flagsFlags in binary string representation
descVector of descriptors (descriptor is complete information about flag)
abbvVector of abbreviations (abbreviation is short information about flag)

◆ presentVisualBasicObjects()

void retdec::fileinfo::PlainPresentation::presentVisualBasicObjects ( ) const
private

Member Data Documentation

◆ explanatory

bool retdec::fileinfo::PlainPresentation::explanatory
private

true - print explanatory notes

◆ verbose

bool retdec::fileinfo::PlainPresentation::verbose
private

true - print all information about file


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