structure, layout, parser and its modules

This commit is contained in:
2024-08-19 02:35:16 +03:00
parent d41144a634
commit ffbc929472
258 changed files with 5830 additions and 461 deletions

25
parser/module.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef MODULE_H
#define MODULE_H
#include <string>
#include <nlohmann/json.hpp>
#include <regex>
class Module {
std::string path;
std::string name;
std::string goods_name_regex;
std::string goods_price_regex;
std::string goods_quantity_regex;
public:
Module(std::string);
Module();
std::smatch parse_name(std::string);
std::smatch parse_price(std::string);
std::smatch parse_quantity(std::string);
std::string get_name();
};
#endif // MODULE_H