@@ -39,7 +39,7 @@ class Value;
39
39
*/
40
40
class JSON_API StreamWriter {
41
41
protected:
42
- std::ostream * sout_; // not owned; will not delete
42
+ JSONCPP_OSTREAM * sout_; // not owned; will not delete
43
43
public:
44
44
StreamWriter ();
45
45
virtual ~StreamWriter ();
@@ -49,7 +49,7 @@ class JSON_API StreamWriter {
49
49
\return zero on success (For now, we always return zero, so check the stream instead.)
50
50
\throw std::exception possibly, depending on configuration
51
51
*/
52
- virtual int write (Value const & root, std::ostream * sout) = 0;
52
+ virtual int write (Value const & root, JSONCPP_OSTREAM * sout) = 0;
53
53
54
54
/* * \brief A simple abstract factory.
55
55
*/
@@ -281,7 +281,7 @@ class JSON_API StyledStreamWriter {
281
281
* \note There is no point in deriving from Writer, since write() should not
282
282
* return a value.
283
283
*/
284
- void write (std::ostream & out, const Value& root);
284
+ void write (JSONCPP_OSTREAM & out, const Value& root);
285
285
286
286
private:
287
287
void writeValue (const Value& value);
@@ -300,7 +300,7 @@ class JSON_API StyledStreamWriter {
300
300
typedef std::vector<std::string> ChildValues;
301
301
302
302
ChildValues childValues_;
303
- std::ostream * document_;
303
+ JSONCPP_OSTREAM * document_;
304
304
std::string indentString_;
305
305
unsigned int rightMargin_;
306
306
std::string indentation_;
@@ -320,7 +320,7 @@ std::string JSON_API valueToQuotedString(const char* value);
320
320
321
321
// / \brief Output using the StyledStreamWriter.
322
322
// / \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);
324
324
325
325
} // namespace Json
326
326
0 commit comments