kima2/src/core/jsonutil.h

20 lines
592 B
C++

#ifndef JSON_H
#define JSON_H
#include "marketplace.h"
#include <filesystem>
#include <string>
class JsonUtil
{
public:
static void exportSellers(const std::filesystem::path& filePath, Marketplace* market);
static std::size_t importSellers(const std::filesystem::path& filePath, Marketplace* market);
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