Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
file.hpp File Reference
#include <fstream>
#include <filesystem>
#include <optional>
#include <spdlog/spdlog.h>

Go to the source code of this file.

Namespaces

namespace  dcn
 

Functions

void dcn::setBinPath (std::filesystem::path bin_path)
 Set the BIN_PATH variable to the path of the binary directory.
 
std::filesystem::path dcn::getBinPath ()
 
std::filesystem::path dcn::getStoragePath ()
 
std::filesystem::path dcn::getResourcesPath ()
 
std::filesystem::path dcn::getLogsPath ()
 
std::filesystem::path dcn::getPTPath ()
 
std::optional< std::string > dcn::loadTextFile (std::filesystem::path path)
 
std::optional< std::vector< std::byte > > dcn::loadBinaryFile (std::filesystem::path path)