forked from magnusolavhelland/CSD-Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueryValidation.h
More file actions
28 lines (14 loc) · 724 Bytes
/
queryValidation.h
File metadata and controls
28 lines (14 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <string>
#include "myStructs.h"
using namespace std;
void setInputType(const string& parameter, InputType& input);
// The function validates and sets the input parameter.
void setOutput(const string& parameter, Output& o);
// The function validates and sets the output parameter.
void setCorrMethod(const string& parameter, string& c);
// The function validates and sets the correlation method.
void setFormat(const string& parameter, bool& vertical);
// The function validates the parameter and sets the the data format to
// vertical or not (not=horizontal).
void validateJob(const InputType& input, const Output& o);
// The function checks for illegal combinations of input and output parameters.