Free Electron
emit.h
1 #ifndef NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 #if defined(_MSC_VER) || \
5  (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6  (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
7 #pragma once
8 #endif
9 
10 #include <string>
11 #include <iosfwd>
12 
13 #include "yaml-cpp/dll.h"
14 
15 namespace YAML {
16 class Emitter;
17 class Node;
18 
19 /**
20  * Emits the node to the given {@link Emitter}. If there is an error in writing,
21  * {@link Emitter#good} will return false.
22  */
23 YAML_CPP_API Emitter& operator<<(Emitter& out, const Node& node);
24 
25 /** Emits the node to the given output stream. */
26 YAML_CPP_API std::ostream& operator<<(std::ostream& out, const Node& node);
27 
28 /** Converts the node to a YAML string. */
29 YAML_CPP_API std::string Dump(const Node& node);
30 } // namespace YAML
31 
32 #endif // NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
JSON_API OStream & operator<<(OStream &, const Value &root)
Output using the StyledStreamWriter.
Definition: anchor.h:12