#include <stdlib.h> // atoi() atof()
#include STL_STRING
-#include STL_STRSTREAM
#include <simgear/debug/logstream.hxx>
#include <simgear/io/iochannel.hxx>
SG_USING_STD(string);
SG_USING_STD(cout);
-SG_USING_STD(istrstream);
bool FGHttpd::open() {
#include <stdlib.h> // atoi() atof()
#include STL_STRING
-#include STL_STRSTREAM
#include <simgear/debug/logstream.hxx>
#include <simgear/io/iochannel.hxx>
#include "jpg-httpd.hxx"
SG_USING_STD(string);
-SG_USING_STD(cout);
-SG_USING_STD(istrstream);
bool FGJpegHttpd::open() {
#include <simgear/props/props.hxx>
#include <simgear/props/props_io.hxx>
-#include STL_STRSTREAM
+#include <sstream>
#include <Main/globals.hxx>
#include <Main/viewmgr.hxx>
#include "props.hxx"
-SG_USING_STD(strstream);
+SG_USING_STD(stringstream);
SG_USING_STD(ends);
/**
push( line.c_str() );
}
} else if ( command == "dump" ) {
- strstream buf;
+ stringstream buf;
if ( tokens.size() <= 1 ) {
writeProperties( buf, node );
buf << ends; // null terminate the string
- push( buf.str() );
+ push( buf.str().c_str() );
push( getTerminator() );
} else {
SGPropertyNode *child = node->getNode( tokens[1].c_str() );
if ( child ) {
writeProperties ( buf, child );
buf << ends; // null terminate the string
- push( buf.str() );
+ push( buf.str().c_str() );
push( getTerminator() );
} else {
node_not_found_error( tokens[1] );