#pragma once #include #include #include #include struct order { std::string name; std::string address; std::string phone; std::string email; int id; }; inline void to_json(json &, const order &order); inline void from_json(const json &, order &order); class orders { std::vector data; const with_data_directory &data_directory; const fs::path &get_path(); void sort(); public: void write(); void load(); orders(const with_data_directory &); void push(json); ~orders(); };