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
728e26e4
Commit
728e26e4
authored
May 12, 2016
by
Jesse Beder
Browse files
Update doc, formatting for emit.h.
parent
3392ab98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
include/yaml-cpp/node/emit.h
include/yaml-cpp/node/emit.h
+8
-1
src/emit.cpp
src/emit.cpp
+1
-1
No files found.
include/yaml-cpp/node/emit.h
View file @
728e26e4
...
...
@@ -16,10 +16,17 @@ namespace YAML {
class
Emitter
;
class
Node
;
/**
* Emits the node to the given {@link Emitter}. If there is an error in writing,
* {@link Emitter#good} will return false.
*/
YAML_CPP_API
Emitter
&
operator
<<
(
Emitter
&
out
,
const
Node
&
node
);
/** Emits the node to the given output stream. */
YAML_CPP_API
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Node
&
node
);
/** Converts the node to a YAML string. */
YAML_CPP_API
std
::
string
Dump
(
const
Node
&
node
);
}
}
// namespace YAML
#endif // NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/emit.cpp
View file @
728e26e4
...
...
@@ -22,4 +22,4 @@ std::string Dump(const Node& node) {
emitter
<<
node
;
return
emitter
.
c_str
();
}
}
}
// namespace YAML
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