Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
util.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_APPLICATION_UTIL_HPP
7
#define KAGOME_APPLICATION_UTIL_HPP
8
9
#include <boost/filesystem.hpp>
10
11
#include "
outcome/outcome.hpp
"
12
13
namespace
kagome::application::util
{
14
15
enum class
Error
{
16
FAILED_TO_CREATE_DIR
= 1,
17
NOT_A_DIR
,
18
};
19
20
outcome::result<void>
init_directory
(
const
boost::filesystem::path &path);
21
22
}
// namespace kagome::application::util
23
24
OUTCOME_HPP_DECLARE_ERROR
(
kagome::application::util
,
Error
);
25
26
#endif // KAGOME_UTIL_HPP
kagome::application::util
Definition:
util.cpp:26
kagome::application::util::Error
Error
Definition:
util.hpp:15
outcome.hpp
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::application::util, Error)
kagome::application::util::Error::FAILED_TO_CREATE_DIR
kagome::application::util::init_directory
outcome::result< void > init_directory(const boost::filesystem::path &path)
Definition:
util.cpp:30
kagome::application::util::Error::NOT_A_DIR
core
application
impl
util.hpp
Generated by
1.8.11