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
935d0a39
Commit
935d0a39
authored
Jun 05, 2015
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove emscripten test
parent
b540ac89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
a.cpp
emscripten/a.cpp
+0
-25
No files found.
emscripten/a.cpp
deleted
100644 → 0
View file @
b540ac89
#include <string>
#include <fstream>
#include <streambuf>
#include <iostream>
#define private public
#include "rapidjson/document.h"
int
main
()
{
// std::ifstream in_file("config.json", std::ios::in);
rapidjson
::
Document
json_config_
;
// std::string json_string(
// (std::istreambuf_iterator<char>(in_file)),
// std::istreambuf_iterator<char>());
std
::
string
json_string
(
"{
\"
float_test
\"
: 75.0}"
);
// if (!json_string.empty()) {
json_config_
.
Parse
(
json_string
.
c_str
());
// }
printf
(
"%p
\n
"
,
&
json_config_
);
printf
(
"%p
\n
"
,
&
json_config_
.
data_
.
o
.
members
[
0
].
value
.
data_
.
n
.
d
);
std
::
cout
<<
json_config_
[
"float_test"
].
GetDouble
()
<<
std
::
endl
;
}
\ No newline at end of file
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