Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
036f3002
Commit
036f3002
authored
Mar 08, 2017
by
John Stiles
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/miloyip/master'
parents
237d2f2e
2df32fbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
simplepullreader.cpp
example/simplepullreader/simplepullreader.cpp
+5
-0
No files found.
example/simplepullreader/simplepullreader.cpp
View file @
036f3002
...
...
@@ -16,6 +16,8 @@ struct MyHandler {
const
char
*
type
;
std
::
string
data
;
MyHandler
()
:
type
(),
data
()
{}
bool
Null
()
{
type
=
"Null"
;
data
.
clear
();
return
true
;
}
bool
Bool
(
bool
b
)
{
type
=
"Bool:"
;
data
=
b
?
"true"
:
"false"
;
return
true
;
}
bool
Int
(
int
i
)
{
type
=
"Int:"
;
data
=
stringify
(
i
);
return
true
;
}
...
...
@@ -30,6 +32,9 @@ struct MyHandler {
bool
EndObject
(
SizeType
memberCount
)
{
type
=
"EndObject:"
;
data
=
stringify
(
memberCount
);
return
true
;
}
bool
StartArray
()
{
type
=
"StartArray"
;
data
.
clear
();
return
true
;
}
bool
EndArray
(
SizeType
elementCount
)
{
type
=
"EndArray:"
;
data
=
stringify
(
elementCount
);
return
true
;
}
private
:
MyHandler
(
const
MyHandler
&
noCopyConstruction
);
MyHandler
&
operator
=
(
const
MyHandler
&
noAssignment
);
};
int
main
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment