drogon
C++14/17-based HTTP application framework
Toggle main menu visibility
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
34
namespace
drogon
35
{
36
namespace
orm
37
{
39
52
class
DROGON_EXPORT
ArrayParser
53
{
54
public
:
56
enum
juncture
57
{
59
row_start
,
61
row_end
,
63
null_value
,
65
string_value
,
67
done
,
68
};
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
drogon::orm::ArrayParser::getNext
std::pair< juncture, std::string > getNext()
Parse the next step in the array.
drogon::orm::ArrayParser::ArrayParser
ArrayParser(const char input[])
Constructor. You don't need this; use field::as_array instead.
drogon::orm::ArrayParser::juncture
juncture
What's the latest thing found in the array?
Definition
ArrayParser.h:57
drogon::orm::ArrayParser::row_end
@ row_end
Ending the current row.
Definition
ArrayParser.h:61
drogon::orm::ArrayParser::row_start
@ row_start
Starting a new row.
Definition
ArrayParser.h:59
drogon::orm::ArrayParser::done
@ done
Parsing has completed.
Definition
ArrayParser.h:67
drogon::orm::ArrayParser::string_value
@ string_value
Found a string value.
Definition
ArrayParser.h:65
drogon::orm::ArrayParser::null_value
@ null_value
Found a NULL value.
Definition
ArrayParser.h:63
drogon
Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...
Definition
Attribute.h:23
orm_lib
inc
drogon
orm
ArrayParser.h
Generated by
1.17.0