-
Notifications
You must be signed in to change notification settings - Fork 5
/
ingredient.h
43 lines (38 loc) · 1.12 KB
/
ingredient.h
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
#ifndef INGR_H
#define INGR_H
using namespace std;
# include "PCH.h"
# include "dirent.h"
# include "utility.h"
# include <fstream>
# include <iostream>
# include <regex>
# include <string>
# include <vector>
namespace INGR
{
struct line_content
{
std::vector<std::string> objects;
std::vector<std::string> objectExcluded;
std::vector<std::string> keywords;
std::vector<std::string> keywordsOr;
std::vector<std::string> keywordsExcluded;
std::vector<std::string> mgefs;
std::vector<std::string> mgefsOr;
std::vector<std::string> mgefsExcluded;
std::vector<std::string> keywordsToAdd;
std::vector<std::string> keywordsToRemove;
std::string filterType;
std::string capsvalue;
std::string weight;
std::string fullName;
std::vector<std::vector<std::string>> addedObjects;
std::vector<std::string> removedObjects;
std::vector<std::vector<std::string>> changedObjects;
};
struct line_content create_patch_instruction(const std::string& line);
void process_patch_instructions(const std::list<line_content>& tokens);
void* readConfig(const std::string& folder);
}
#endif