5 #ifndef JODA_LOAD_STATE_H
6 #define JODA_LOAD_STATE_H
8 #define JODA_DEFAULT_LINE_SEPERATED false
24 template <
typename Input>
27 template <
typename Input>
32 qs.
q->addImportSource(std::move(
source));
39 inline bool putValProv(std::unique_ptr<joda::query::IValueProvider> &&val) {
40 assert(val !=
nullptr &&
"Should not pass nullptr");
41 if (val ==
nullptr)
return false;
46 assert(
false &&
"Should not be full");
56 std::vector<std::unique_ptr<docparsing::IImportSource>>
sources;
#define JODA_DEFAULT_LINE_SEPERATED
Definition: Load_State.h:8
static StorageCollection & getInstance()
Definition: StorageCollection.h:32
Source_Value
Definition: Load_State.h:16
@ 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: Load_State.h:23
Source_Value source
Definition: Load_State.h:53
void success(const Input &in, queryState &qs)
Definition: Load_State.h:28
std::string loadVar
Definition: Load_State.h:50
bool lineSeperated
Definition: Load_State.h:55
std::unique_ptr< joda::query::IValueProvider > groupvalprov
Definition: Load_State.h:52
bool putValProv(std::unique_ptr< joda::query::IValueProvider > &&val)
Definition: Load_State.h:39
loadState(const Input &in, queryState &qs)
Definition: Load_State.h:25
std::vector< std::unique_ptr< docparsing::IImportSource > > sources
Definition: Load_State.h:56
std::string loadFile
Definition: Load_State.h:51
Definition: Query_State.h:21
std::shared_ptr< joda::query::Query > q
Definition: Query_State.h:33