retdec
Private Attributes | List of all members
retdec::fileformat::ResourceIcon Class Reference

#include <resource_icon.h>

Inheritance diagram for retdec::fileformat::ResourceIcon:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileformat::ResourceIcon:
Collaboration graph
[legend]

Public Member Functions

Getters
std::uint16_t getWidth () const
 
std::uint16_t getHeight () const
 
std::size_t getIconSize () const
 
std::uint8_t getColorCount () const
 
std::uint16_t getPlanes () const
 
std::uint16_t getBitCount () const
 
std::size_t getIconGroup () const
 
Setters
void setWidth (std::uint16_t iWidth)
 
void setHeight (std::uint16_t iHeight)
 
void setIconSize (std::size_t iSize)
 
void setColorCount (std::uint8_t iColorCount)
 
void setPlanes (std::uint16_t iPlanes)
 
void setBitCount (std::uint16_t iBitCount)
 
void setIconGroup (std::size_t iGroup)
 
void setLoadedProperties ()
 
void setValidColorCount ()
 
Other methods
bool hasLoadedProperties () const
 
bool hasValidColorCount () const
 
- Public Member Functions inherited from retdec::fileformat::Resource
std::string getCrc32 () const
 
std::string getMd5 () const
 
std::string getSha256 () const
 
std::string getName () const
 
std::string getType () const
 
std::string getLanguage () const
 
const llvm::StringRef getBytes (std::size_t sOffset=0, std::size_t sSize=0) const
 
std::size_t getOffset () const
 
std::size_t getSizeInFile () const
 
std::size_t getLoadedSize () const
 
bool getNameId (std::size_t &rId) const
 
bool getTypeId (std::size_t &rId) const
 
bool getLanguageId (std::size_t &rId) const
 
bool getSublanguageId (std::size_t &rId) const
 
bool getBits (std::string &sResult) const
 
bool getBytes (std::vector< unsigned char > &sResult, std::size_t sOffset=0, std::size_t sSize=0) const
 
bool getString (std::string &sResult, std::size_t sOffset=0, std::size_t sSize=0) const
 
bool getHexBytes (std::string &sResult) const
 
void setName (std::string rName)
 
void setType (std::string rType)
 
void setLanguage (std::string rLan)
 
void setOffset (std::size_t rOffset)
 
void setSizeInFile (std::size_t rSize)
 
void setNameId (std::size_t rId)
 
void setTypeId (std::size_t rId)
 
void setLanguageId (std::size_t rId)
 
void setSublanguageId (std::size_t rId)
 
bool isLoaded () const
 
bool hasValidName () const
 
bool hasValidId () const
 
void invalidateNameId ()
 
void invalidateTypeId ()
 
void invalidateLanguageId ()
 
void invalidateSublanguageId ()
 
void load (const FileFormat *rOwner)
 
bool hasCrc32 () const
 
bool hasMd5 () const
 
bool hasSha256 () const
 
bool hasEmptyName () const
 
bool hasEmptyType () const
 
bool hasEmptyLanguage () const
 

Private Attributes

std::uint16_t width = 0
 icon width More...
 
std::uint16_t height = 0
 icon height More...
 
std::size_t iconSize = 0
 icon size in file More...
 
std::uint8_t colorCount = 0
 icon color count More...
 
std::uint16_t planes = 0
 icon planes More...
 
std::uint16_t bitCount = 0
 icon bit count More...
 
std::size_t iconGroup = 0
 icon group the icon belongs to More...
 
bool loadedProperties = false
 true if properties were successfully loaded from icon group resource More...
 
bool validColorCount = false
 true if color count has a valid value More...
 

Detailed Description

One resource icon

Member Function Documentation

◆ getBitCount()

std::uint16_t retdec::fileformat::ResourceIcon::getBitCount ( ) const

Get icon bit count

Returns
Bit count

◆ getColorCount()

std::uint8_t retdec::fileformat::ResourceIcon::getColorCount ( ) const

Get icon color count

Returns
Color count

◆ getHeight()

std::uint16_t retdec::fileformat::ResourceIcon::getHeight ( ) const

Get icon height

Returns
Icon height

◆ getIconGroup()

std::size_t retdec::fileformat::ResourceIcon::getIconGroup ( ) const

Get icon group

Returns
Icon group

◆ getIconSize()

std::size_t retdec::fileformat::ResourceIcon::getIconSize ( ) const

Get icon size

Returns
Icon size

◆ getPlanes()

std::uint16_t retdec::fileformat::ResourceIcon::getPlanes ( ) const

Get icon planes

Returns
Planes

◆ getWidth()

std::uint16_t retdec::fileformat::ResourceIcon::getWidth ( ) const

Get icon width

Returns
Icon with

◆ hasLoadedProperties()

bool retdec::fileformat::ResourceIcon::hasLoadedProperties ( ) const

A method which indicates whether icon properties are loaded.

Returns
true if it is, otherwise false

◆ hasValidColorCount()

bool retdec::fileformat::ResourceIcon::hasValidColorCount ( ) const

A method which indicates whether color count of an icon is valid.

Returns
true if it is, otherwise false

◆ setBitCount()

void retdec::fileformat::ResourceIcon::setBitCount ( std::uint16_t  iBitCount)

Set icon bit count

Parameters
iBitCountIcon bit count

◆ setColorCount()

void retdec::fileformat::ResourceIcon::setColorCount ( std::uint8_t  iColorCount)

Set icon color count

Parameters
iColorCountIcon color count

◆ setHeight()

void retdec::fileformat::ResourceIcon::setHeight ( std::uint16_t  iHeight)

Set icon height

Parameters
iHeightIcon height

◆ setIconGroup()

void retdec::fileformat::ResourceIcon::setIconGroup ( std::size_t  iGroup)

Set icon group

Parameters
iGroupIcon Group

◆ setIconSize()

void retdec::fileformat::ResourceIcon::setIconSize ( std::size_t  iSize)

Set icon size

Parameters
iSizeIcon size

◆ setLoadedProperties()

void retdec::fileformat::ResourceIcon::setLoadedProperties ( )

Set loaded properties flag

◆ setPlanes()

void retdec::fileformat::ResourceIcon::setPlanes ( std::uint16_t  iPlanes)

Set icon planes

Parameters
iPlanesIcon planes

◆ setValidColorCount()

void retdec::fileformat::ResourceIcon::setValidColorCount ( )

Set color count to a valid state

◆ setWidth()

void retdec::fileformat::ResourceIcon::setWidth ( std::uint16_t  iWidth)

Set icon width

Parameters
iWidthIcon width

Member Data Documentation

◆ bitCount

std::uint16_t retdec::fileformat::ResourceIcon::bitCount = 0
private

icon bit count

◆ colorCount

std::uint8_t retdec::fileformat::ResourceIcon::colorCount = 0
private

icon color count

◆ height

std::uint16_t retdec::fileformat::ResourceIcon::height = 0
private

icon height

◆ iconGroup

std::size_t retdec::fileformat::ResourceIcon::iconGroup = 0
private

icon group the icon belongs to

◆ iconSize

std::size_t retdec::fileformat::ResourceIcon::iconSize = 0
private

icon size in file

◆ loadedProperties

bool retdec::fileformat::ResourceIcon::loadedProperties = false
private

true if properties were successfully loaded from icon group resource

◆ planes

std::uint16_t retdec::fileformat::ResourceIcon::planes = 0
private

icon planes

◆ validColorCount

bool retdec::fileformat::ResourceIcon::validColorCount = false
private

true if color count has a valid value

◆ width

std::uint16_t retdec::fileformat::ResourceIcon::width = 0
private

icon width


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