5 #ifndef JODA_LOAD_ACTIONS_H
6 #define JODA_LOAD_ACTIONS_H
9 #include "../grammar/Grammar.h"
10 #include "../states/States.h"
17 template <
typename Input>
35 template <
typename Input>
37 #ifndef JODA_ENABLE_FROMURL
38 throw tao::pegtl::parse_error(
39 "This program was compiled without 'FROM URL' support.", in);
47 template <
typename Input>
55 template <
typename Input>
57 std::string
pointer = in.string();
58 state.
putValProv(std::make_unique<joda::query::PointerProvider>(
70 template <
typename Input>
72 std::string str = in.string();
73 assert(!str.empty() &&
"String can not be empty");
80 template <
typename Input>
85 LOG(ERROR) <<
"No source for load, this should not be possible.";
89 std::make_unique<docparsing::JSONFileSource>(
94 std::make_unique<docparsing::JSONFileDirectorySource>(
99 std::make_unique<docparsing::JSONURLSource>(state.
loadFile));
#define JODA_DEFAULT_LINE_SEPERATED
Definition: Load_State.h:8
@ NO_SOURCE
Definition: Load_State.h:17
@ URL_SOURCE
Definition: Load_State.h:20
@ FILE_SOURCE
Definition: Load_State.h:18
@ DIRECTORY_SOURCE
Definition: Load_State.h:19
Definition: Literals.h:156
static void apply0(loadState &state)
Definition: Load_Actions.h:30
static void apply0(loadState &state)
Definition: Load_Actions.h:25
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:36
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:56
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:48
static void apply0(loadState &state)
Definition: Load_Actions.h:65
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:18
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:81
static void apply(const Input &in, loadState &state)
Definition: Load_Actions.h:71
Definition: Load_State.h:23
Source_Value source
Definition: Load_State.h:53
std::string loadVar
Definition: Load_State.h:50
bool lineSeperated
Definition: Load_State.h:55
double sampleNum
Definition: Load_State.h:54
bool putValProv(std::unique_ptr< joda::query::IValueProvider > &&val)
Definition: Load_State.h:39
std::vector< std::unique_ptr< docparsing::IImportSource > > sources
Definition: Load_State.h:56
std::string loadFile
Definition: Load_State.h:51
Definition: Literals.h:27