retdec
|
Yara patterns processing. More...
#include <fstream>
#include <ostream>
#include "retdec/utils/filesystem.h"
#include "retdec/utils/io/log.h"
#include "pat2yara/processing.h"
#include "yaramod/builder/yara_file_builder.h"
#include "yaramod/builder/yara_rule_builder.h"
#include "yaramod/yaramod.h"
Functions | |
void | printUsage (Logger &log) |
int | dieWithError (const std::string &message) |
void | printWarning (const std::string &message) |
bool | argumentToSize (const std::vector< std::string > &args, std::size_t &result, std::size_t index) |
int | processArguments (std::vector< std::string > &args) |
int | main (int argc, char *argv[]) |
Yara patterns processing.
bool argumentToSize | ( | const std::vector< std::string > & | args, |
std::size_t & | result, | ||
std::size_t | index | ||
) |
Converts passed argument to size value.
args | input vector of arguments |
result | variable for conversion result |
index | position of argument in input vector |
true
if conversion was made successfully, false
otherwise int dieWithError | ( | const std::string & | message | ) |
Returns from application with error message.
message | error message for user |
int main | ( | int | argc, |
char * | argv[] | ||
) |
void printUsage | ( | Logger & | log | ) |
Print application usage.
log | logger object to write usage with |
void printWarning | ( | const std::string & | message | ) |
Prints warning to standard error output.
message | warning message for user |
int processArguments | ( | std::vector< std::string > & | args | ) |
Process program inputs.
args | command line options |