mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Added constructor to the Emitter with a stream, so you can write directly to a stream instead of our temp
This commit is contained in:
@@ -25,6 +25,7 @@ namespace YAML
|
||||
{
|
||||
public:
|
||||
Emitter();
|
||||
explicit Emitter(std::ostream& stream);
|
||||
~Emitter();
|
||||
|
||||
// output
|
||||
@@ -114,8 +115,8 @@ namespace YAML
|
||||
bool CanEmitNewline() const;
|
||||
|
||||
private:
|
||||
ostream_wrapper m_stream;
|
||||
std::auto_ptr<EmitterState> m_pState;
|
||||
ostream_wrapper m_stream;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user