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
Go to the documentation of this file.
1
#pragma once
2
3
#include <fstream>
4
#include <filesystem>
5
#include <optional>
6
7
#include <spdlog/spdlog.h>
8
9
namespace
dcn::file
10
{
11
std::optional<std::string>
loadTextFile
(std::filesystem::path path);
12
13
std::optional<std::vector<std::byte>>
loadBinaryFile
(std::filesystem::path path);
14
}
dcn::file
Definition
file.hpp:10
dcn::file::loadBinaryFile
std::optional< std::vector< std::byte > > loadBinaryFile(std::filesystem::path path)
Definition
file.cpp:28
dcn::file::loadTextFile
std::optional< std::string > loadTextFile(std::filesystem::path path)
Definition
file.cpp:5
src
file
include
file.hpp
Generated by
1.9.8