File: MatchedRuleInfo.h

package info (click to toggle)
sleuthkit 4.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,248 kB
  • sloc: ansic: 142,208; cpp: 50,346; java: 27,140; xml: 2,419; perl: 882; python: 508; makefile: 416; sh: 184
file content (43 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
** The Sleuth Kit
**
** Brian Carrier [carrier <at> sleuthkit [dot] org]
** Copyright (c) 2010-2019 Brian Carrier.  All Rights reserved
**
** This software is distributed under the Common Public License 1.0
**
*/

/**
* \file MatchedRuleInfo.h
* Contains the class definitions for the Matched Rule Info.
*/

#pragma once

#include <string>

/**
* Defines the matched rule information
*
*/
class MatchedRuleInfo
{
public:
    MatchedRuleInfo(const std::string &ruleSetName, const std::string &name, 
        const std::string &description, bool shouldSave = true, bool shouldAlert = false);
    ~MatchedRuleInfo() {}

    const std::string getRuleSetName() const { return m_ruleSetName; }
    const std::string getName() const { return m_name; }
    const std::string getDescription() const { return m_description; }
    bool isShouldSave() const { return m_shouldSave; }
    bool isShouldAlert() const { return m_shouldAlert; }

private:
    std::string m_ruleSetName;
    std::string m_name;
    std::string m_description;
    bool m_shouldSave;
    bool m_shouldAlert;
};