forked from vchukanov/cppimagefilterbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
31 lines (28 loc) · 713 Bytes
/
parser.h
File metadata and controls
31 lines (28 loc) · 713 Bytes
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
#ifndef PARSER_H
#define PARSER_H
#include <string>
#include <istream>
#include <vector>
#include <fstream>
#include <iostream>
#include <sstream>
typedef struct cParams {
std::string nameOfFilter;
int u;
int l;
int b;
int r;
}cParams;
class parser {
public:
void pars(char* filename);
int GetU(int i) { return this->filterQ[i].u; };
int GetL(int i) { return this->filterQ[i].l; };
int GetB(int i) { return this->filterQ[i].b; };
int GetR(int i) { return this->filterQ[i].r; };
std::string GetString(int i) { return this->filterQ[i].nameOfFilter; };
int countOfFilters() { return this->filterQ.size(); };
private:
std::vector<cParams> filterQ;
};
#endif // PARSER_H