Argo  1.0
A C++ library for handling JSON.
Public Member Functions | List of all members
argo::stream_writer Class Reference

A class to write JSON messages to a C++ istream. More...

#include <stream_writer.hpp>

Inheritance diagram for argo::stream_writer:
argo::writer

Public Member Functions

 stream_writer (std::ostream *s)
 
virtual void write (const std::string &s)
 
- Public Member Functions inherited from argo::writer
 writer ()
 Constructor.
 

Detailed Description

A class to write JSON messages to a C++ istream.

Definition at line 36 of file stream_writer.hpp.

Constructor & Destructor Documentation

stream_writer::stream_writer ( std::ostream *  s)

Constructor. Does not take over owenership of the stream, the caller is required to close it and deallocate (if needed) when done.

Definition at line 31 of file stream_writer.cpp.

Member Function Documentation

void stream_writer::write ( const std::string &  s)
virtual

Write a string to the stream.

Implements argo::writer.

Definition at line 35 of file stream_writer.cpp.


The documentation for this class was generated from the following files: