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
dcn::file Namespace Reference

Functions

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

Function Documentation

◆ getBinPath()

std::filesystem::path dcn::file::getBinPath ( )

◆ getLogsPath()

std::filesystem::path dcn::file::getLogsPath ( )

◆ getPTPath()

std::filesystem::path dcn::file::getPTPath ( )

◆ getResourcesPath()

std::filesystem::path dcn::file::getResourcesPath ( )

◆ getStoragePath()

std::filesystem::path dcn::file::getStoragePath ( )

◆ loadBinaryFile()

std::optional< std::vector< std::byte > > dcn::file::loadBinaryFile ( std::filesystem::path  path)

◆ loadTextFile()

std::optional< std::string > dcn::file::loadTextFile ( std::filesystem::path  path)

◆ setBinPath()

void dcn::file::setBinPath ( std::filesystem::path  bin_path)

Set the BIN_PATH variable to the path of the binary directory.

Parameters
bin_pathThe path of the binary directory.