drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
ArrayParser.h
Go to the documentation of this file.
1
11// Taken from libpqxx and modified
12
26
27#pragma once
28
29#include <drogon/exports.h>
30#include <stdexcept>
31#include <string>
32#include <utility>
33
34namespace drogon
35{
36namespace orm
37{
39
52class DROGON_EXPORT ArrayParser
53{
54 public:
69
71 explicit ArrayParser(const char input[]);
72
74
79 std::pair<juncture, std::string> getNext();
80
81 private:
83 const char *pos_;
84};
85
86} // namespace orm
87} // namespace drogon
std::pair< juncture, std::string > getNext()
Parse the next step in the array.
ArrayParser(const char input[])
Constructor. You don't need this; use field::as_array instead.
juncture
What's the latest thing found in the array?
Definition ArrayParser.h:57
@ row_end
Ending the current row.
Definition ArrayParser.h:61
@ row_start
Starting a new row.
Definition ArrayParser.h:59
@ done
Parsing has completed.
Definition ArrayParser.h:67
@ string_value
Found a string value.
Definition ArrayParser.h:65
@ null_value
Found a NULL value.
Definition ArrayParser.h:63
Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...
Definition Attribute.h:23