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
e5d03667
"vscode:/vscode.git/clone" did not exist on "2218a0dd048d3e79a0877fce3fa58030ba08a23c"
Commit
e5d03667
authored
Sep 13, 2011
by
Jesse Beder
Browse files
Added Dump()
parent
c3798d9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
include/yaml-cpp/node/emit.h
include/yaml-cpp/node/emit.h
+2
-0
src/node/emit.cpp
src/node/emit.cpp
+7
-0
No files found.
include/yaml-cpp/node/emit.h
View file @
e5d03667
...
...
@@ -15,6 +15,8 @@ namespace YAML
Emitter
&
operator
<<
(
Emitter
&
out
,
const
Node
&
node
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Node
&
node
);
std
::
string
Dump
(
const
Node
&
node
);
}
#endif // NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
...
...
src/node/emit.cpp
View file @
e5d03667
...
...
@@ -20,4 +20,11 @@ namespace YAML
out
<<
emitter
.
c_str
();
return
out
;
}
std
::
string
Dump
(
const
Node
&
node
)
{
Emitter
emitter
;
emitter
<<
node
;
return
emitter
.
c_str
();
}
}
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