11#define CODE_RULE "possible_code"
84 std::string name = *itr;
85 if (name == ruleName) {
97 const virtual bool toJSON(std::stringstream& outs,
size_t level)
99 OUT_PADDED(outs, level,
"\"stats_verdict\" : {\n");
110 std::string ruleName = *itr;
115 OUT_PADDED(outs, level,
"\"" + ruleName +
"\" : ");
116 outs << std::dec <<
true;
bool isMatching(IN const AreaMultiStats &stats)
virtual bool _isMatching(IN const AreaMultiStats &stats)=0
RuleMatcher(std::string _name)
size_t valuesNotBelowMean(IN const ChunkStats &currArea, double mean)
double getPrintableRatio(IN const AreaMultiStats &stats)
size_t fillCodeStrings(OUT std::set< std::string > &codeStrings)
size_t fetchPeakValues(IN const ChunkStats &currArea, IN double stdDev, int devCount, OUT std::set< BYTE > &peaks)
std::string info()
The string with the basic information about the scanner.
virtual const void fieldsToJSON(std::stringstream &outs, size_t level)
AreaInfo(const AreaInfo &p1)
bool hasMatchAt(const std::string &ruleName)
virtual const bool toJSON(std::stringstream &outs, size_t level)
std::vector< std::string > matchedRules
Statistics from a block of data.
void initRules(DWORD ruleTypes)
size_t findMatches(IN const AreaMultiStats &stats, OUT AreaInfo &info)
std::vector< RuleMatcher * > matchers
RuleMatchersSet(DWORD ruleTypes)