diff --git a/include/orders.hpp b/include/orders.hpp index f45ccb9..3913f46 100644 --- a/include/orders.hpp +++ b/include/orders.hpp @@ -8,9 +8,10 @@ class orders : public json { const with_data_directory &data_directory; const fs::path &get_path(); - public: void write(); void load(); orders(const with_data_directory &); + void push(); + ~orders(); }; diff --git a/src/orders.cpp b/src/orders.cpp index fa96382..13d84d0 100644 --- a/src/orders.cpp +++ b/src/orders.cpp @@ -35,4 +35,6 @@ void orders::write() { } catch (const std::exception &e) { std::cerr << e.what() << std::endl; } -} \ No newline at end of file +} + +orders::~orders() { write(); } \ No newline at end of file