20 #ifndef GEOS_DATAREPOSITORY_INPUTFLAGS_HPP_
21 #define GEOS_DATAREPOSITORY_INPUTFLAGS_HPP_
29 namespace dataRepository
75 GEOS_ERROR(
"Invalid integer conversion to InputFlag" );
88 return static_cast< int >(val);
119 rval =
"OPTIONAL_NONUNIQUE";
129 rval =
"REQUIRED_NONUNIQUE";
134 rval =
"PROBLEM_ROOT";
149 return static_cast< int >(left) ==
static_cast< int >(right);
157 return static_cast< int >(left) !=
static_cast< int >(right);
165 return static_cast< int >(left) <
static_cast< int >(right);
173 return static_cast< int >(left) >
static_cast< int >(right);
181 return static_cast< int >(left) <=
static_cast< int >(right);
189 return static_cast< int >(left) >=
static_cast< int >(right);
#define GEOS_ERROR(msg)
Raise a hard error and terminate the program.
bool operator>(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
InputFlags IntToInputFlag(int const val)
Convert integer value to InputFlags.
@ OPTIONAL_NONUNIQUE
Optional in input, may be repeated.
@ OPTIONAL
Optional in input.
@ PROBLEM_ROOT
Root of the hierarchy.
@ FALSE
Not read from input.
@ REQUIRED_NONUNIQUE
Required in input, may be repeated.
@ REQUIRED
Required in input.
bool operator!=(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
bool operator<=(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
bool operator>=(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
bool operator==(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
int InputFlagToInt(InputFlags const val)
Convert InputFlags to int.
bool operator<(InputFlags const left, InputFlags const right)
Comparison operator for InputFlags enumeration.
string InputFlagToString(InputFlags const val)
Convert an InputFlags value to a string.
std::int32_t integer
Signed integer type.