mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Renamed ostream -> ostream_wrapper
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
#include "yaml-cpp/binary.h"
|
||||
#include "yaml-cpp/emitterdef.h"
|
||||
#include "yaml-cpp/emittermanip.h"
|
||||
#include "yaml-cpp/ostream.h"
|
||||
#include "yaml-cpp/noncopyable.h"
|
||||
#include "yaml-cpp/null.h"
|
||||
#include "yaml-cpp/ostream_wrapper.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
@@ -114,8 +114,8 @@ namespace YAML
|
||||
bool CanEmitNewline() const;
|
||||
|
||||
private:
|
||||
ostream m_stream;
|
||||
std::auto_ptr <EmitterState> m_pState;
|
||||
ostream_wrapper m_stream;
|
||||
std::auto_ptr<EmitterState> m_pState;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#ifndef OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||
#define OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||
#ifndef OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||
#define OSTREAM_WRAPPER_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
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
class ostream
|
||||
class ostream_wrapper
|
||||
{
|
||||
public:
|
||||
ostream();
|
||||
~ostream();
|
||||
ostream_wrapper();
|
||||
~ostream_wrapper();
|
||||
|
||||
void reserve(unsigned size);
|
||||
void put(char ch);
|
||||
@@ -35,9 +35,9 @@ namespace YAML
|
||||
bool m_comment;
|
||||
};
|
||||
|
||||
ostream& operator << (ostream& out, const char *str);
|
||||
ostream& operator << (ostream& out, const std::string& str);
|
||||
ostream& operator << (ostream& out, char ch);
|
||||
ostream_wrapper& operator << (ostream_wrapper& out, const char *str);
|
||||
ostream_wrapper& operator << (ostream_wrapper& out, const std::string& str);
|
||||
ostream_wrapper& operator << (ostream_wrapper& out, char ch);
|
||||
}
|
||||
|
||||
#endif // OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||
#endif // OSTREAM_WRAPPER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
Reference in New Issue
Block a user