Horizon
Loading...
Searching...
No Matches
src
rules
rules_with_core.hpp
1
#pragma once
2
#include "rules.hpp"
3
#include "rules_import_export.hpp"
4
#include "nlohmann/json_fwd.hpp"
5
#include <memory>
6
#include <atomic>
7
8
namespace
horizon {
9
using
json =
nlohmann::json
;
10
RulesCheckResult
rules_check(
Rules
&rules, RuleID
id
,
class
IDocument
&c,
class
RulesCheckCache
&cache,
11
check_status_cb_t status_cb,
const
std::atomic_bool &cancel = std::atomic_bool(
false
));
12
void
rules_apply(
const
Rules
&rules, RuleID
id
,
class
IDocument
&c);
13
json rules_export(
const
Rules
&rules,
const
class
RulesExportInfo
&export_info,
IDocument
&c);
14
std::unique_ptr<RulesImportInfo> rules_get_import_info(
const
json &j);
15
}
// namespace horizon
horizon::IDocument
Definition
idocument.hpp:5
horizon::RulesCheckCache
Definition
cache.hpp:57
horizon::RulesCheckResult
Definition
rules.hpp:38
horizon::RulesExportInfo
Definition
rules_import_export.hpp:18
horizon::Rules
Definition
rules.hpp:54
nlohmann::json
basic_json<> json
default JSON class
Definition
json_fwd.hpp:62
Generated by
1.15.0