inner_parser.h 752 Bytes
Newer Older
1
2
3
4
5
6
#ifndef INMOST_INNER_PARSER_H_H
#define INMOST_INNER_PARSER_H_H

#include <string>
#include <iostream>
#include <vector>
7
8
9
#include <cstdlib>
#include <cstring>
#include <cstdio>
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

enum OptionType {
    REAL,
    ENUM
};

class InnerOption {
public:

    InnerOption(const std::string &name, const std::string &value, OptionType type) : name(name), value(value),
                                                                                      type(type) { }
    std::string name;
    std::string value;
    OptionType type;
};

class InnerOptions {
public:
    std::vector<InnerOption *> options;
};

char *findInnerOptions(const char *databaseFilePath);
InnerOptions *parseInnerDatabaseOptions(char *optionsFile);

#endif //INMOST_INNER_PARSER_H_H