Class DataModule

Class Documentation

class gkfs::data::DataModule

The data module class providing the data backend for the daemon as a singleton.

Public Functions

DataModule(DataModule const&) = delete
void operator=(DataModule const&) = delete
const std::shared_ptr<spdlog::logger> &log() const

Returns the data module log handle.

Returns

Pointer to the spdlog instance

void log(const std::shared_ptr<spdlog::logger> &log)

Attaches a logging instance to the data module.

Parameters

log – spdlog shared pointer instance

Public Static Functions

static inline DataModule *getInstance()

Public Static Attributes

static constexpr const char *LOGGER_NAME = "DataModule"

Private Functions

DataModule() = default

Private Members

std::shared_ptr<spdlog::logger> log_

Logging instance for data backend.