LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::PE::ResourceStringFileInfo Class Reference

Representation of the StringFileInfo structure. More...

#include <ResourceStringFileInfo.hpp>

Inheritance diagram for LIEF::PE::ResourceStringFileInfo:
Collaboration diagram for LIEF::PE::ResourceStringFileInfo:

Public Member Functions

 ResourceStringFileInfo ()
 
 ResourceStringFileInfo (uint16_t type, std::u16string key)
 
 ResourceStringFileInfo (const ResourceStringFileInfo &)=default
 
ResourceStringFileInfooperator= (const ResourceStringFileInfo &)=default
 
 ~ResourceStringFileInfo () override=default
 
uint16_t type () const
 The type of data in the version resource.
 
const std::u16string & key () const
 Signature of the structure: Must be the unicode string "StringFileInfo".
 
const std::vector< LangCodeItem > & langcode_items () const
 List of the LangCodeItem items.
 
std::vector< LangCodeItem > & langcode_items ()
 
void type (uint16_t type)
 
void key (std::u16string key)
 
void key (const std::string &key)
 
void langcode_items (std::vector< LangCodeItem > items)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Additional Inherited Members

- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Detailed Description

Representation of the StringFileInfo structure.

It contains version information that can be displayed for a particular language and code page.

See: https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo

Constructor & Destructor Documentation

◆ ResourceStringFileInfo() [1/3]

LIEF::PE::ResourceStringFileInfo::ResourceStringFileInfo ( )

◆ ResourceStringFileInfo() [2/3]

LIEF::PE::ResourceStringFileInfo::ResourceStringFileInfo ( uint16_t type,
std::u16string key )
inline

◆ ResourceStringFileInfo() [3/3]

LIEF::PE::ResourceStringFileInfo::ResourceStringFileInfo ( const ResourceStringFileInfo & )
default

◆ ~ResourceStringFileInfo()

LIEF::PE::ResourceStringFileInfo::~ResourceStringFileInfo ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::ResourceStringFileInfo::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.

◆ key() [1/3]

const std::u16string & LIEF::PE::ResourceStringFileInfo::key ( ) const
inline

Signature of the structure: Must be the unicode string "StringFileInfo".

◆ key() [2/3]

void LIEF::PE::ResourceStringFileInfo::key ( const std::string & key)

◆ key() [3/3]

void LIEF::PE::ResourceStringFileInfo::key ( std::u16string key)
inline

◆ langcode_items() [1/3]

std::vector< LangCodeItem > & LIEF::PE::ResourceStringFileInfo::langcode_items ( )
inline

◆ langcode_items() [2/3]

const std::vector< LangCodeItem > & LIEF::PE::ResourceStringFileInfo::langcode_items ( ) const
inline

List of the LangCodeItem items.

Each LangCodeItem::key indicates the appropriate language and code page for displaying the key: value of LangCodeItem::items

◆ langcode_items() [3/3]

void LIEF::PE::ResourceStringFileInfo::langcode_items ( std::vector< LangCodeItem > items)
inline

◆ operator=()

ResourceStringFileInfo & LIEF::PE::ResourceStringFileInfo::operator= ( const ResourceStringFileInfo & )
default

◆ type() [1/2]

uint16_t LIEF::PE::ResourceStringFileInfo::type ( ) const
inline

The type of data in the version resource.

  • 1 if it contains text data
  • 0 if it contains binary data

◆ type() [2/2]

void LIEF::PE::ResourceStringFileInfo::type ( uint16_t type)
inline

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