
By updating to this commit, Linux users have to regenerate Makefiles by re-running the configure script. * Added yaml-cpp project as a 3rdparty library * Migrated source files core to C++ * Updated configure scripts * Make Linux installations compile *.cpp files * Made server components' main source file C++ * Also made headers CPP-aware. * Added basic C wrapper for yaml-cpp library * YAML-node path is delimited by periods. * Basic integer types and string are supported. * Strings returned from this wrapper have to be freed with malloc.h::aFree * Arrays (sequence) is supported with iterator wrapper. * Remember to free every wrapper you create! * Add yaml-cpp as dependency of common project * Made the repo not ignore *.yml files Thanks to @aleos89 and @Lemongrass3110.
33 lines
958 B
C++
33 lines
958 B
C++
#ifndef NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
|
#define NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
|
|
|
#if defined(_MSC_VER) || \
|
|
(defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
|
|
(__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <string>
|
|
#include <iosfwd>
|
|
|
|
#include "yaml-cpp/dll.h"
|
|
|
|
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
|