forked from lix-project/lix
f4ab297b31
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
18 lines
383 B
C++
18 lines
383 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include "config.hh"
|
|
|
|
namespace nix {
|
|
template<typename T>
|
|
std::map<std::string, nlohmann::json> BaseSetting<T>::toJSONObject()
|
|
{
|
|
auto obj = AbstractSetting::toJSONObject();
|
|
obj.emplace("value", value);
|
|
obj.emplace("defaultValue", defaultValue);
|
|
obj.emplace("documentDefault", documentDefault);
|
|
return obj;
|
|
}
|
|
}
|