retdec
Public Member Functions | List of all members
retdec::common::ToolInfoContainer Class Reference

#include <tool_info.h>

Inheritance diagram for retdec::common::ToolInfoContainer:
Inheritance graph
[legend]
Collaboration diagram for retdec::common::ToolInfoContainer:
Collaboration graph
[legend]

Public Member Functions

const ToolInfogetToolByName (const std::string &name)
 
const ToolInfogetToolWithMaxPercentage ()
 
const ToolInfogetToolMostSignificant ()
 
bool isTool (const std::string &name) const
 
Tool container query methods.

Methods find out it the container contains specific tool using the isTool() method. Because there might be several tools in the container, several of these methods may return true at the same time.

bool isGcc () const
 
bool isFasm () const
 
bool isLlvm () const
 
bool isPic32 () const
 
bool isMingw () const
 
bool isDelphi () const
 
bool isWatcom () const
 
bool isIntel () const
 
bool isPspGcc () const
 
bool isBorland () const
 
bool isMsvc (const std::string &version="") const
 
bool isThumbCompiler () const
 

Detailed Description

Sequential container of tool informations. The order of tools in this container is important. The first one is the most, and the last one the least, significant.

Member Function Documentation

◆ getToolByName()

const ToolInfo * retdec::common::ToolInfoContainer::getToolByName ( const std::string &  name)

Gets tool with the given name from container. See ToolInfo::isTool() for more details on name comparison.

Returns
Pointer to the tool, or nullptr if tool not found.

◆ getToolMostSignificant()

const ToolInfo * retdec::common::ToolInfoContainer::getToolMostSignificant ( )

Gets the mosts significant (i.e. first) tool in the container.

Returns
Pointer to the tool, or nullptr if container empty.

◆ getToolWithMaxPercentage()

const ToolInfo * retdec::common::ToolInfoContainer::getToolWithMaxPercentage ( )

Gets tool with the maximal percentage in the container. In case of severel tools with the same percentage, gets the first one.

Returns
Pointer to the tool, or nullptr if tool not found.

◆ isBorland()

bool retdec::common::ToolInfoContainer::isBorland ( ) const

◆ isDelphi()

bool retdec::common::ToolInfoContainer::isDelphi ( ) const

◆ isFasm()

bool retdec::common::ToolInfoContainer::isFasm ( ) const

◆ isGcc()

bool retdec::common::ToolInfoContainer::isGcc ( ) const

◆ isIntel()

bool retdec::common::ToolInfoContainer::isIntel ( ) const

◆ isLlvm()

bool retdec::common::ToolInfoContainer::isLlvm ( ) const

◆ isMingw()

bool retdec::common::ToolInfoContainer::isMingw ( ) const

◆ isMsvc()

bool retdec::common::ToolInfoContainer::isMsvc ( const std::string &  version = "") const

◆ isPic32()

bool retdec::common::ToolInfoContainer::isPic32 ( ) const

◆ isPspGcc()

bool retdec::common::ToolInfoContainer::isPspGcc ( ) const

◆ isThumbCompiler()

bool retdec::common::ToolInfoContainer::isThumbCompiler ( ) const

◆ isTool()

bool retdec::common::ToolInfoContainer::isTool ( const std::string &  name) const

Finds out if container contains a tool with the given name. See ToolInfo::isTool() for more details on name comparison.

◆ isWatcom()

bool retdec::common::ToolInfoContainer::isWatcom ( ) const

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