Provides classes for variables and expression evaluation. More...
#include <string>
#include <vector>
#include <stack>
#include <list>
#include <map>
#include <deque>
#include "utils/my_assert.h"
#include "tree/tree.hh"
#include <stdlib.h>
#include "utils/memleak.h"
#include "utils.h"
#include "params.h"
#include "compat.h"
#include "variable.h"
#include "function.h"
#include "proc/c_lines.h"
#include "logic/c_smtp.h"
#include "logic/c_dynamic_rule.h"
#include "logic/c_user.h"
#include "logic/c_channel.h"
#include "mod/c_module.h"
#include "log.h"
#include "shared.h"
#include "logic.h"
#include "md5.h"
#include "modules.h"
#include "eval.h"
#include "microcode.h"
#include "var_keeper.h"
#include "log/c_logger.h"
#include "var/c_var_base.h"
#include "var/c_var_array.h"
#include "var/c_var_bool.h"
#include "var/c_var_int.h"
#include "var/c_var_ref.h"
#include "var/c_var_string.h"
#include "var/c_var_unset.h"
#include "func/c_opers.h"
#include "func/c_part.h"
#include "func/expression/oper_prec.h"
#include "func/c_expression.h"
#include "microcode/c_micro.h"
#include "microcode/c_micro_array.h"
#include "script_consts/script_consts.h"
#include "utils/precomp.h"
Go to the source code of this file.
Classes | |
struct | c_array_var_decode_array_for_botnet |
Used for iterative array operation. More... | |
Functions | |
void | array_log_fn (c_var_keeper::e_log_severity severity, const string &msg, void *user_data) |
string | exp_result_to_string (e_exp_result e) |
Gets explanation of return code. | |
c_var_base * | make_new_unset () |
c_var_array * | var_decode_array_for_botnet (c_module *this_module, char *data, size_t &pos, size_t size) |
Decodes binary-encoded array (for BOTNET remote call). | |
c_var_base * | var_decode_entity_for_botnet (c_module *this_module, char *data, size_t &pos, size_t size) |
Decodes binary-encoded variable (for BOTNET remote call). | |
bool | var_decode_for_botnet (c_module *this_module, char *data, size_t size, vector< c_var_base * > &args, string &func_name) |
Decodes binary-encoded list of arguments (for BOTNET remote call). | |
bool | var_encode_for_botnet (c_module *this_module, char *&data, size_t &size, const vector< c_var_base * > &args, const string &func_name) |
Encodes list of arguments to binary form (for BOTNET remote call). | |
c_var_base * | var_eval_index (c_module *this_module, c_var_base *base, c_index_int *&index, bool insensitive, const string &debug) |
Evaluates index. | |
c_var_base * | var_eval_obj (c_module *this_module, string str, c_var_array *vars, const string &debug, bool &return_ref) |
Looks up and evalueates variable beginning with '$' sign, if it is possible. | |
string | var_eval_string_simple (c_module *this_module, const string &str, c_var_array *vars, const string &debug) |
Evaluates variable to string. | |
void | var_fatal (c_module *this_module, const string &file, const string &func, const string &str, const string &debug) |
Prits fatal error to logs. | |
bool | var_is_indexed (string var) |
Checks if it is direct variable name, or indexed. | |
void | var_log_fn (c_var_keeper::e_log_severity severity, const string &msg, void *mod) |
void | var_oops (c_module *this_module, const string &file, const string &func, const string &str, const string &debug) |
Prits warning to logs. | |
void | var_oops (c_module *this_module, const string &prefix, const string &str, const string &debug) |
Prits warning to logs (without using C++ file, func, a line number informations). | |
void | var_oops (c_module *this_module, const string &file, const string &func, const string &str, const string &str2, const string &debug) |
Prits warning to logs. | |
void | var_oops_ (c_module *this_module, const string &prefix, const string &file, const string &func, const string &str, const string &str2, const string &debug) |
Prits OOPS to logs. | |
void | var_oops_ (c_module *this_module, const string &prefix, const string &file, const string &func, const string &str, const string &debug) |
Prits OOPS to logs. | |
string | vartype_to_string (e_vartype vartype) |
Returns string type of variable. |
Provides classes for variables and expression evaluation.
Definition in file variable.cpp.