retdec
include
retdec
yaracpp
yara_meta.h
Go to the documentation of this file.
1
7
#ifndef RETDEC_YARACPP_YARA_META_H
8
#define RETDEC_YARACPP_YARA_META_H
9
10
#include <string>
11
12
namespace
retdec
{
13
namespace
yaracpp {
14
18
class
YaraMeta
19
{
20
public
:
21
enum class
Type
22
{
23
String
,
24
Int
25
};
26
private
:
28
std::string
id
;
29
Type
type
;
30
std::string
strValue
;
31
std::uint64_t
intValue
;
32
public
:
35
const
std::string&
getId
()
const
;
36
YaraMeta::Type
getType
()
const
;
37
const
std::string&
getStringValue
()
const
;
38
const
std::uint64_t&
getIntValue
()
const
;
40
43
std::string&
getStringValue
();
44
std::uint64_t&
getIntValue
();
46
49
void
setId
(
const
std::string &metaId);
50
void
setType
(
YaraMeta::Type
metaType);
51
void
setStringValue
(
const
std::string &metaValue);
52
void
setIntValue
(std::uint64_t metaValue);
54
};
55
56
}
// namespace yaracpp
57
}
// namespace retdec
58
59
#endif
retdec::yaracpp::YaraMeta
Definition:
yara_meta.h:19
retdec::yaracpp::YaraMeta::getType
YaraMeta::Type getType() const
Definition:
yara_meta.cpp:27
retdec::yaracpp::YaraMeta::setType
void setType(YaraMeta::Type metaType)
Definition:
yara_meta.cpp:85
retdec::yaracpp::YaraMeta::intValue
std::uint64_t intValue
Definition:
yara_meta.h:31
retdec::yaracpp::YaraMeta::setId
void setId(const std::string &metaId)
Definition:
yara_meta.cpp:76
retdec::yaracpp::YaraMeta::strValue
std::string strValue
Definition:
yara_meta.h:30
retdec::yaracpp::YaraMeta::getStringValue
const std::string & getStringValue() const
Definition:
yara_meta.cpp:36
retdec::yaracpp::YaraMeta::getId
const std::string & getId() const
Definition:
yara_meta.cpp:18
retdec::yaracpp::YaraMeta::id
std::string id
name of meta
Definition:
yara_meta.h:28
retdec::yaracpp::YaraMeta::getIntValue
const std::uint64_t & getIntValue() const
Definition:
yara_meta.cpp:46
retdec::yaracpp::YaraMeta::Type
Type
Definition:
yara_meta.h:22
retdec::yaracpp::YaraMeta::Type::Int
@ Int
retdec::yaracpp::YaraMeta::Type::String
@ String
retdec::yaracpp::YaraMeta::setIntValue
void setIntValue(std::uint64_t metaValue)
Definition:
yara_meta.cpp:104
retdec::yaracpp::YaraMeta::setStringValue
void setStringValue(const std::string &metaValue)
Definition:
yara_meta.cpp:94
retdec::yaracpp::YaraMeta::type
Type type
Definition:
yara_meta.h:29
retdec
Definition:
archive_wrapper.h:19
Generated on Tue Aug 8 2023 10:45:49 for retdec by
1.9.1