Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-05-12 09:08:08

0001 #ifndef NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0002 #define NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0003 
0004 #if defined(_MSC_VER) ||                                            \
0005     (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
0006      (__GNUC__ >= 4))  // GCC supports "pragma once" correctly since 3.4
0007 #pragma once
0008 #endif
0009 
0010 #include <string>
0011 #include <iosfwd>
0012 
0013 #include "ATOOLS/YAML/yaml-cpp/dll.h"
0014 
0015 namespace SHERPA_YAML {
0016 class Emitter;
0017 class Node;
0018 
0019 /**
0020  * Emits the node to the given {@link Emitter}. If there is an error in writing,
0021  * {@link Emitter#good} will return false.
0022  */
0023 YAML_CPP_API Emitter& operator<<(Emitter& out, const Node& node);
0024 
0025 /** Emits the node to the given output stream. */
0026 YAML_CPP_API std::ostream& operator<<(std::ostream& out, const Node& node);
0027 
0028 /** Converts the node to a YAML string. */
0029 YAML_CPP_API std::string Dump(const Node& node);
0030 }  // namespace SHERPA_YAML
0031 
0032 #endif  // NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66