Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
39165338
Commit
39165338
authored
May 20, 2012
by
Jesse Beder
Browse files
Added sandbox to play with
parent
d8bdeb5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
util/CMakeLists.txt
util/CMakeLists.txt
+2
-0
util/sandbox.cpp
util/sandbox.cpp
+18
-0
No files found.
util/CMakeLists.txt
View file @
39165338
add_executable
(
sandbox sandbox.cpp
)
target_link_libraries
(
sandbox yaml-cpp
)
util/sandbox.cpp
0 → 100644
View file @
39165338
#include "yaml-cpp/yaml.h"
#include <iostream>
int
main
()
{
YAML
::
Emitter
out
;
out
<<
YAML
::
BeginSeq
;
out
<<
"foo"
;
out
<<
YAML
::
Comment
(
"Skills"
);
out
<<
YAML
::
BeginMap
;
out
<<
YAML
::
Key
<<
"attack"
<<
YAML
::
Value
<<
23
;
out
<<
YAML
::
Key
<<
"intelligence"
<<
YAML
::
Value
<<
56
;
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndSeq
;
std
::
cout
<<
out
.
c_str
()
<<
"
\n
"
;
return
0
;
}
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