retdec
Public Member Functions | Private Attributes | List of all members
retdec::fileformat::String Class Reference

#include <string.h>

Collaboration diagram for retdec::fileformat::String:
Collaboration graph
[legend]

Public Member Functions

template<typename SectionNameT , typename ContentT >
 String (StringType type, std::uint64_t fileOffset, SectionNameT &&sectionName, ContentT &&content)
 
 String (const String &)=default
 
 String (String &&) noexcept=default
 
 ~String ()=default
 
Stringoperator= (const String &)=default
 
Stringoperator= (String &&)=default
 
StringType getType () const
 
std::uint64_t getFileOffset () const
 
const std::string & getSectionName () const
 
const std::string & getContent () const
 
bool isAscii () const
 
bool isWide () const
 
void setType (StringType stringType)
 
void setFileOffset (std::uint64_t stringFileOffset)
 
void setSectionName (const std::string &sectionName)
 
void setSectionName (std::string &&sectionName)
 
void setContent (const std::string &stringContent)
 
void setContent (std::string &&stringContent)
 
bool operator< (const String &rhs) const
 
bool operator== (const String &rhs) const
 
bool operator!= (const String &rhs) const
 

Private Attributes

StringType type
 
std::uint64_t fileOffset
 
std::string sectionName
 
std::string content
 

Constructor & Destructor Documentation

◆ String() [1/3]

template<typename SectionNameT , typename ContentT >
retdec::fileformat::String::String ( StringType  type,
std::uint64_t  fileOffset,
SectionNameT &&  sectionName,
ContentT &&  content 
)
inline

◆ String() [2/3]

retdec::fileformat::String::String ( const String )
default

◆ String() [3/3]

retdec::fileformat::String::String ( String &&  )
defaultnoexcept

◆ ~String()

retdec::fileformat::String::~String ( )
default

Member Function Documentation

◆ getContent()

const std::string & retdec::fileformat::String::getContent ( ) const

◆ getFileOffset()

std::uint64_t retdec::fileformat::String::getFileOffset ( ) const

◆ getSectionName()

const std::string & retdec::fileformat::String::getSectionName ( ) const

◆ getType()

StringType retdec::fileformat::String::getType ( ) const

◆ isAscii()

bool retdec::fileformat::String::isAscii ( ) const

◆ isWide()

bool retdec::fileformat::String::isWide ( ) const

◆ operator!=()

bool retdec::fileformat::String::operator!= ( const String rhs) const

◆ operator<()

bool retdec::fileformat::String::operator< ( const String rhs) const

◆ operator=() [1/2]

String& retdec::fileformat::String::operator= ( const String )
default

◆ operator=() [2/2]

String& retdec::fileformat::String::operator= ( String &&  )
default

◆ operator==()

bool retdec::fileformat::String::operator== ( const String rhs) const

◆ setContent() [1/2]

void retdec::fileformat::String::setContent ( const std::string &  stringContent)

◆ setContent() [2/2]

void retdec::fileformat::String::setContent ( std::string &&  stringContent)

◆ setFileOffset()

void retdec::fileformat::String::setFileOffset ( std::uint64_t  stringFileOffset)

◆ setSectionName() [1/2]

void retdec::fileformat::String::setSectionName ( const std::string &  sectionName)

◆ setSectionName() [2/2]

void retdec::fileformat::String::setSectionName ( std::string &&  sectionName)

◆ setType()

void retdec::fileformat::String::setType ( StringType  stringType)

Member Data Documentation

◆ content

std::string retdec::fileformat::String::content
private

◆ fileOffset

std::uint64_t retdec::fileformat::String::fileOffset
private

◆ sectionName

std::string retdec::fileformat::String::sectionName
private

◆ type

StringType retdec::fileformat::String::type
private

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