~berciu-deactivatedaccount/cristallparser/unstable-qt

62 by Sylwke3100
Move detects, search, check method to CristallDetectTools
1
#ifndef CRISTALLDETECTTOOLS_H
2
#define CRISTALLDETECTTOOLS_H
3
#include <vector>
4
#include <cstdlib>
5
#include <iostream>
6
#include <cctype>
7
#include <map>
65 by Sylwke3100
Create new model data for CristallGrammar and implemented in all files
8
#include "CristallHeader.h"
62 by Sylwke3100
Move detects, search, check method to CristallDetectTools
9
using namespace std;
65 by Sylwke3100
Create new model data for CristallGrammar and implemented in all files
10
using namespace Cristall;
62 by Sylwke3100
Move detects, search, check method to CristallDetectTools
11
class CristallDetectTools
12
{
13
protected:
71 by Sylwke3100
Create enum when define Types object from Rule
14
    enum class Types
15
    {
16
        Coma = 3,
17
        Minus = 4,
18
        Alpha = 6,
19
        Digit = 7,
20
        None = 0
21
    };
65 by Sylwke3100
Create new model data for CristallGrammar and implemented in all files
22
    int searchInvoke(Rules Rule);
71 by Sylwke3100
Create enum when define Types object from Rule
23
    CristallDetectTools::Types detectInvoke(char& Val);
62 by Sylwke3100
Move detects, search, check method to CristallDetectTools
24
    bool checkAlfanum(const string &str);
25
    bool checkFloatnum(const string &str);
68 by Sylwke3100
Add Options define type separated floats points
26
    char OPTION_SEPARATEDFLOAT = '.';
71 by Sylwke3100
Create enum when define Types object from Rule
27
62 by Sylwke3100
Move detects, search, check method to CristallDetectTools
28
};
29
30
#endif // CRISTALLDETECTTOOLS_H