~berciu-deactivatedaccount/cristallparser/unstable-qt

1 by Sylwek
Create Stable Branch
1
#ifndef CRISTALLPARSER_H
2
#define CRISTALLPARSER_H
76.1.3 by Marcin Zarebski
Fix source formatting
3
4
#include <string>
5
1 by Sylwek
Create Stable Branch
6
#include "CristallHeader.h"
4 by Sylwek
Correct: reference File CristallParser to CristallGrammar
7
#include "CristallGrammar.h"
6 by Sylwek
Add: Limit for any rule (CristallParser and CristallGrammar)
8
#include "CristallValues.h"
87 by Sylwke3100
Rename CristallDetectTools to CristallDetectRules
9
#include "CristallDetectRules.h"
1 by Sylwek
Create Stable Branch
10
87 by Sylwke3100
Rename CristallDetectTools to CristallDetectRules
11
class CristallParser : public CristallGrammar, CristallValues, CristallDetectRules
1 by Sylwek
Create Stable Branch
12
{
13
private:
76.1.3 by Marcin Zarebski
Fix source formatting
14
    std::string RawData;
15
    void parseData(std::string RawData);
88 by Sylwke3100
Refactoring code
16
    void parseSingleRule(CristallGrammarModel Model, int &CurrentPosiotion);
17
    void parseMultiRule(CristallGrammarModel Model, int &CurrentPosiotion);
90 by Sylwke3100
Any Changes in Code: create parserSpecialRule, move isAnyNumbers to DetectRules and other
18
    void parseAnySpecialRule(CristallGrammarModel Model, int &CurrentPosiotion);
1 by Sylwek
Create Stable Branch
19
public:
76.1.4 by Marcin Zarebski
Remove using namespace from headers, remove unnecessary includes
20
    void setOptions(Cristall::Options Option);
76.1.3 by Marcin Zarebski
Fix source formatting
21
    void setData(std::string Data);
23 by Sylwke3100
Change Container Summary from map < int, map < const char, string > > to CristallValues
22
    CristallValues run();
1 by Sylwek
Create Stable Branch
23
};
24
25
#endif // CRISTALLPARSER_H