31 #ifndef STRUCT_QUERYSTRUCT_HPP_ 32 #define STRUCT_QUERYSTRUCT_HPP_ 49 inline static constexpr std::uint8_t
typeNone{0};
122 std::uint8_t setType,
123 std::size_t setIndex,
125 bool setResultSingle,
127 bool setResultSubSets
145 [[nodiscard]]
bool valid() const noexcept {
146 return this->
index != 0;
static constexpr std::uint8_t typeJsonPointer
Query type identifying a JSONPointer query.
Definition: QueryStruct.hpp:58
bool resultBool
Indicates whether the query generates a boolean result.
Definition: QueryStruct.hpp:80
bool resultSingle
Indicates whether the query generates a single result.
Definition: QueryStruct.hpp:83
bool resultMulti
Indicates whether the query generates multiple results.
Definition: QueryStruct.hpp:86
static constexpr std::uint8_t typeJsonPath
Query type identifying a JSONPath query.
Definition: QueryStruct.hpp:61
bool valid() const noexcept
Gets whether the query is valid, i.e. whether a query ID has been identified.
Definition: QueryStruct.hpp:145
QueryStruct(std::uint8_t setType, std::size_t setIndex, bool setResultBool, bool setResultSingle, bool setResultMulti, bool setResultSubSets)
Constructor explicitly setting the properties.
Definition: QueryStruct.hpp:121
std::uint8_t type
The type of the query (see above).
Definition: QueryStruct.hpp:74
bool resultSubSets
Indicates whether the query generates subsets as results.
Definition: QueryStruct.hpp:93
static constexpr std::uint8_t typeNone
Unspecified query type.
Definition: QueryStruct.hpp:49
static constexpr std::uint8_t typeRegEx
Query type identifying a RegEx query.
Definition: QueryStruct.hpp:52
static constexpr std::uint8_t typeXPathJsonPointer
Query type identifying a combined XPath and JSONPointer query.
Definition: QueryStruct.hpp:64
std::size_t index
The index of the query inside its container.
Definition: QueryStruct.hpp:77
static constexpr std::uint8_t typeXPathJsonPath
Query type identifying a combined XPath and JSONPath query.
Definition: QueryStruct.hpp:67
QueryStruct()=default
Default constructor.
Structure to identify a query including its type and result type(s).
Definition: QueryStruct.hpp:40
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43
static constexpr std::uint8_t typeXPath
Query type identifying a XPath query.
Definition: QueryStruct.hpp:55