kima2/src/core/jsonutil.h

18 lines
499 B
C
Raw Normal View History

2018-08-02 11:15:15 +02:00
#ifndef JSON_H
#define JSON_H
#include "marketplace.h"
#include <string>
2018-08-09 12:58:11 +02:00
#include <filesystem>
2018-08-02 11:15:15 +02:00
class JsonUtil
{
public:
static void exportSellers(const std::string& filename, Marketplace* market);
2018-08-09 12:58:11 +02:00
static void importSellers(const std::filesystem::path& filePath, Marketplace* market);
2018-08-02 15:06:35 +02:00
static void exportSales(const std::string& filename, Marketplace* market, int cashPointNo);
2018-08-02 15:28:35 +02:00
static void importSales(const std::string& filename, Marketplace* market, int cashPointNo);
2018-08-02 11:15:15 +02:00
};
#endif