Skip to content

sgns::daemon_config

#include <daemonconfig.hpp>

Public Functions

Name
daemon_config() =default
daemon_config(boost::filesystem::path const & data_path)
::sgns::error_ deserialize_json(bool & , sgns::jsonconfig & )
::sgns::error_ serialize_json(sgns::jsonconfig & )
::sgns::error_ deserialize_toml(sgns::tomlconfig & )
::sgns::error_ serialize_toml(sgns::tomlconfig & )
unsigned json_version() const

Public Attributes

Name
::sgns::node_config node
bool opencl_enable
boost::filesystem::path data_path

Public Functions Documentation

function daemon_config

daemon_config() =default

function daemon_config

daemon_config(
    boost::filesystem::path const & data_path
)

function deserialize_json

::sgns::error_ deserialize_json(
    bool & ,
    sgns::jsonconfig & 
)

function serialize_json

::sgns::error_ serialize_json(
    sgns::jsonconfig & 
)

function deserialize_toml

::sgns::error_ deserialize_toml(
    sgns::tomlconfig & 
)

function serialize_toml

::sgns::error_ serialize_toml(
    sgns::tomlconfig & 
)

function json_version

inline unsigned json_version() const

Public Attributes Documentation

variable node

::sgns::node_config node;

variable opencl_enable

bool opencl_enable { false };

variable data_path

boost::filesystem::path data_path;

Updated on 2026-03-04 at 13:10:43 -0800