Files
aux_cmd/formater/fmt.json.h
2026-03-29 19:25:59 +08:00

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