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
 
namespace  dcn::file
 

Functions

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