complete parsing

This commit is contained in:
2024-08-20 02:38:40 +03:00
parent 984102fd64
commit dfa98f758b
8 changed files with 146 additions and 44 deletions

View File

@@ -3,23 +3,22 @@
#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;
std::wstring name;
std::wstring goods_name_regex;
std::wstring goods_price_regex;
std::wstring 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::vector<std::string> parse_name(std::wstring);
std::vector<std::string> parse_price(std::wstring);
std::vector<std::string> parse_quantity(std::wstring);
std::string get_name();
std::wstring get_name();
};
#endif // MODULE_H