Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
728e26e4
Commit
728e26e4
authored
May 12, 2016
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc, formatting for emit.h.
parent
3392ab98
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
+8
-1
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