2018-08-02 11:15:15 +02:00
|
|
|
#ifndef JSON_H
|
|
|
|
#define JSON_H
|
|
|
|
|
|
|
|
#include "marketplace.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class JsonUtil
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void exportSellers(const std::string& filename, Marketplace* market);
|
2018-08-02 12:34:56 +02:00
|
|
|
static void importSellers(const std::string& filename, 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
|