File indexing completed on 2026-04-09 07:49:39
0001 #pragma once
0002
0003 #include "SYSRAP_API_EXPORT.hh"
0004 #include "nlohmann/json.hpp"
0005 #include <iostream>
0006 #include "plog/Severity.h"
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 struct SYSRAP_API SMeta
0019 {
0020 static SMeta* Load(const char* path);
0021 static SMeta* Load(const char* dir, const char* name);
0022 static const plog::Severity LEVEL ;
0023
0024 nlohmann::json js ;
0025 void save(const char* dir, const char* reldir, const char* name) const ;
0026 void save(const char* dir, const char* name) const ;
0027 void save(const char* path) const ;
0028
0029 };
0030
0031
0032 inline std::ostream& operator<<(std::ostream& os, const SMeta& sm)
0033 {
0034 os << sm.js ;
0035 return os;
0036 }
0037
0038
0039