complete parsing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user