kima2/src/core/jsonutil.h

18 lines
550 B
C++

#ifndef JSON_H
#define JSON_H
#include "marketplace.h"
#include <string>
#include <filesystem>
class JsonUtil
{
public:
static void exportSellers(const std::filesystem::path& filePath, Marketplace* market);
static void importSellers(const std::filesystem::path& filePath, Marketplace* market, bool cleanup = true);
static void exportSales(const std::filesystem::path& filePath, Marketplace* market, int cashPointNo);
static void importSales(const std::filesystem::path& filePath, Marketplace* market, int cashPointNo);
};
#endif