Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
abstract-setting-to-json.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include <nlohmann/json.hpp>
5
#include "
nix/util/configuration.hh
"
6
#include "
nix/util/json-utils.hh
"
7
8
namespace
nix {
9
template
<
typename
T>
10
std::map<std::string, nlohmann::json> BaseSetting<T>::toJSONObject()
const
11
{
12
auto
obj = AbstractSetting::toJSONObject();
13
obj.emplace(
"value"
, value);
14
obj.emplace(
"defaultValue"
, defaultValue);
15
obj.emplace(
"documentDefault"
, documentDefault);
16
return
obj;
17
}
18
}
// namespace nix
configuration.hh
json-utils.hh
libutil
include
nix
util
abstract-setting-to-json.hh
Generated by
1.18.0