Conscience Core
CscCommon.h
Go to the documentation of this file.
1
#ifndef CscCommon_h
2
#define CscCommon_h
3
4
#include <string>
5
#include <vector>
6
#include <filesystem>
7
#include <algorithm>
8
#include <cmath>
9
#include <optional>
10
#include <map>
11
#include <memory>
12
#include <exception>
13
#include <functional>
14
15
#include "
Util/conscience_util.h
"
16
#include "
Util/conscience_log.h
"
17
18
#ifndef CSC_LOG_ENABLE_STDOUT
19
#define CSC_LOG_ENABLE_STDOUT 1
20
#endif
21
#ifndef CSC_DEFAULT_OUT_DIR
22
#define CSC_DEFAULT_OUT_DIR fs::temp_directory_path().string()
23
#endif
24
25
using
std::string, std::isnan, std::cout, std::endl,
std::to_string
, std::vector, std::optional, std::map, std::runtime_error, std::exception, std::function, std::nullopt;
26
27
namespace
fs = std::filesystem;
28
template
<
class
T>
29
using
ptr
= std::shared_ptr<T>;
30
31
#define ptrcast std::static_pointer_cast
32
#define ptrdynamiccast std::dynamic_pointer_cast
33
#define newptr std::make_shared
34
35
#define CSC_APP_UNDEFINED -1
36
#define CSC_APP_ENGINE 0
37
#define CSC_APP_STUDIO 1
38
#ifndef CSC_APP
39
#define CSC_APP CSC_APP_UNDEFINED
40
#endif
41
42
#endif
conscience_log.h
nlohmann::to_string
NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string(const NLOHMANN_BASIC_JSON_TPL &j)
user-defined to_string function for JSON values
Definition:
json.hpp:26470
conscience_util.h
ptr
std::shared_ptr< T > ptr
Definition:
CscCommon.h:29
Generated by
1.8.17