23 lines
471 B
C++
23 lines
471 B
C++
#ifndef FMT_JSON_H
|
|
#define FMT_JSON_H
|
|
|
|
#include <string>
|
|
|
|
#include "util/axc.util.h"
|
|
|
|
class JsonFormatter
|
|
{
|
|
public:
|
|
JsonFormatter();
|
|
|
|
public:
|
|
std::string format(const std::string& path, const FormatterArg& arg);
|
|
bool formatContent(const std::string& content, const FormatterArg& arg, std::string& outContent);
|
|
bool save(const std::string& path, const std::string& content);
|
|
|
|
private:
|
|
std::shared_ptr<spdlog::logger> logger;
|
|
};
|
|
|
|
#endif // FMT_JSON_H
|