retdec
utils.h
Go to the documentation of this file.
1 
7 #ifndef PAT2YARA_UTILS_H
8 #define PAT2YARA_UTILS_H
9 
10 #include <cstdint>
11 #include <memory>
12 #include <string>
13 #include <vector>
14 
15 // Forward declarations.
16 namespace yaramod
17 {
18 
19  class HexString;
20  class Rule;
21 
22 } // namespace yaramod
23 
24 std::shared_ptr<yaramod::HexString> getHexPattern(
25  const yaramod::Rule* rule,
26  const std::string &name);
27 
28 std::string getName(
29  const yaramod::Rule *rule);
30 
31 std::string collectNames(
32  const std::vector<yaramod::Rule*>& rules);
33 
34 #endif
Definition: symbol_pattern.h:17
std::shared_ptr< yaramod::HexString > getHexPattern(const yaramod::Rule *rule, const std::string &name)
std::string getName(const yaramod::Rule *rule)
std::string collectNames(const std::vector< yaramod::Rule * > &rules)