@@ -39,7 +39,7 @@ class Value;
3939*/
4040class JSON_API StreamWriter {
4141protected:
42- std::ostream * sout_; // not owned; will not delete
42+ JSONCPP_OSTREAM * sout_; // not owned; will not delete
4343public:
4444 StreamWriter ();
4545 virtual ~StreamWriter ();
@@ -49,7 +49,7 @@ class JSON_API StreamWriter {
4949 \return zero on success (For now, we always return zero, so check the stream instead.)
5050 \throw std::exception possibly, depending on configuration
5151 */
52- virtual int write (Value const & root, std::ostream * sout) = 0;
52+ virtual int write (Value const & root, JSONCPP_OSTREAM * sout) = 0;
5353
5454 /* * \brief A simple abstract factory.
5555 */
@@ -281,7 +281,7 @@ class JSON_API StyledStreamWriter {
281281 * \note There is no point in deriving from Writer, since write() should not
282282 * return a value.
283283 */
284- void write (std::ostream & out, const Value& root);
284+ void write (JSONCPP_OSTREAM & out, const Value& root);
285285
286286private:
287287 void writeValue (const Value& value);
@@ -300,7 +300,7 @@ class JSON_API StyledStreamWriter {
300300 typedef std::vector<std::string> ChildValues;
301301
302302 ChildValues childValues_;
303- std::ostream * document_;
303+ JSONCPP_OSTREAM * document_;
304304 std::string indentString_;
305305 unsigned int rightMargin_;
306306 std::string indentation_;
@@ -320,7 +320,7 @@ std::string JSON_API valueToQuotedString(const char* value);
320320
321321// / \brief Output using the StyledStreamWriter.
322322// / \see Json::operator>>()
323- JSON_API std::ostream & operator <<(std::ostream &, const Value& root);
323+ JSON_API JSONCPP_OSTREAM & operator <<(JSONCPP_OSTREAM &, const Value& root);
324324
325325} // namespace Json
326326
0 commit comments