retdec
Public Types | Private Attributes | List of all members
retdec::yaracpp::YaraMeta Class Reference

#include <yara_meta.h>

Collaboration diagram for retdec::yaracpp::YaraMeta:
Collaboration graph
[legend]

Public Types

enum class  Type { String , Int }
 

Public Member Functions

Const getters
const std::string & getId () const
 
YaraMeta::Type getType () const
 
const std::string & getStringValue () const
 
const std::uint64_t & getIntValue () const
 
Getters
std::string & getStringValue ()
 
std::uint64_t & getIntValue ()
 
Setters
void setId (const std::string &metaId)
 
void setType (YaraMeta::Type metaType)
 
void setStringValue (const std::string &metaValue)
 
void setIntValue (std::uint64_t metaValue)
 

Private Attributes

std::string id
 name of meta More...
 
Type type
 
std::string strValue
 
std::uint64_t intValue
 

Detailed Description

Representation of metadata

Member Enumeration Documentation

◆ Type

Enumerator
String 
Int 

Member Function Documentation

◆ getId()

const std::string & retdec::yaracpp::YaraMeta::getId ( ) const

Get name of meta

Returns
Name of meta

◆ getIntValue() [1/2]

std::uint64_t & retdec::yaracpp::YaraMeta::getIntValue ( )

Get int value of meta

Returns
Int value of meta

◆ getIntValue() [2/2]

const std::uint64_t & retdec::yaracpp::YaraMeta::getIntValue ( ) const

Get int value of meta

Returns
Int value of meta

◆ getStringValue() [1/2]

std::string & retdec::yaracpp::YaraMeta::getStringValue ( )

Get string value of meta

Returns
String value of meta

◆ getStringValue() [2/2]

const std::string & retdec::yaracpp::YaraMeta::getStringValue ( ) const

Get string value of meta

Returns
String value of meta

◆ getType()

YaraMeta::Type retdec::yaracpp::YaraMeta::getType ( ) const

Get type of meta

Returns
Type of meta

◆ setId()

void retdec::yaracpp::YaraMeta::setId ( const std::string &  metaId)

Set name of meta

Parameters
metaIdName of meta

◆ setIntValue()

void retdec::yaracpp::YaraMeta::setIntValue ( std::uint64_t  metaValue)

Set int value of meta

Parameters
metaValueInt value of meta

◆ setStringValue()

void retdec::yaracpp::YaraMeta::setStringValue ( const std::string &  metaValue)

Set string value of meta

Parameters
metaValueString value of meta

◆ setType()

void retdec::yaracpp::YaraMeta::setType ( YaraMeta::Type  metaType)

Set type of meta

Parameters
metaTypeType of meta

Member Data Documentation

◆ id

std::string retdec::yaracpp::YaraMeta::id
private

name of meta

◆ intValue

std::uint64_t retdec::yaracpp::YaraMeta::intValue
private

◆ strValue

std::string retdec::yaracpp::YaraMeta::strValue
private

◆ type

Type retdec::yaracpp::YaraMeta::type
private

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