Changes related to stream includes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-10-12 07:46:15 +00:00
parent 66de8e7a1b
commit fbc535ff08
29 changed files with 165 additions and 46 deletions

View File

@@ -36,8 +36,16 @@ class WXDLLEXPORT wxCommandProcessor;
class WXDLLEXPORT wxFileHistory;
class WXDLLEXPORT wxConfigBase;
class WXDLLIMPORT ostream;
class WXDLLIMPORT istream;
#if wxUSE_IOSTREAMH
# include <istream.h>
# include <ostream.h>
#else
# include <istream>
# include <ostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
// Document manager flags
#define wxDOC_SDI 1

View File

@@ -186,6 +186,8 @@ const wxEventType wxEVT_COMMAND_TAB_SEL_CHANGING = wxEVT_FIRST + 801;
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxEVT_FIRST + 802;
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxEVT_FIRST + 803;
const wxEventType wxEVT_USER_FIRST = wxEVT_FIRST + 2000;
// Compatibility
#if WXWIN_COMPATIBILITY

View File

@@ -52,10 +52,18 @@ typedef unsigned long wxLogLevel;
// ----------------------------------------------------------------------------
// forward declarations
// ----------------------------------------------------------------------------
class wxTextCtrl;
class wxLogFrame;
class wxFrame;
class ostream;
class WXDLLEXPORT wxTextCtrl;
class WXDLLEXPORT wxLogFrame;
class WXDLLEXPORT wxFrame;
#if wxUSE_IOSTREAMH
# include <ostream.h>
#else
# include <ostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
// ----------------------------------------------------------------------------
// derive from this class to redirect (or suppress, or ...) log messages
@@ -166,7 +174,6 @@ private:
};
// log everything to an "ostream", cerr by default
class ostream;
class WXDLLEXPORT wxLogStream : public wxLog
{
public:
@@ -357,9 +364,6 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
// parts of the program only)
WXDLLEXPORT_DATA(extern bool) g_bVerbose;
// fwd decl to avoid including iostream.h here
class ostream;
// ----------------------------------------------------------------------------
// get error code/error message from system in a portable way
// ----------------------------------------------------------------------------

View File

@@ -28,9 +28,12 @@
#include <stddef.h>
#if wxUSE_IOSTREAMH
#include <iostream.h>
# include <ostream.h>
#else
#include <iostream>
# include <ostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
#include "wx/string.h"

View File

@@ -27,11 +27,11 @@
// ----------------------------------------------------------------------------
// fwd declarations
class wxImageList;
class wxWindow;
class WXDLLEXPORT wxImageList;
class WXDLLEXPORT wxWindow;
// array of notebook pages
typedef wxWindow wxNotebookPage; // so far, any window can be a page
typedef wxWindow WXDLLEXPORT wxNotebookPage; // so far, any window can be a page
WX_DEFINE_ARRAY(wxNotebookPage *, wxArrayPages);
// ----------------------------------------------------------------------------

View File

@@ -30,13 +30,21 @@ class WXDLLEXPORT wxObject;
#endif
class WXDLLEXPORT wxClassInfo;
class WXDLLIMPORT ostream;
class WXDLLEXPORT wxInputStream;
class WXDLLEXPORT wxObjectInputStream;
class WXDLLEXPORT wxObjectOutputStream;
class WXDLLEXPORT wxHashTable;
class WXDLLEXPORT wxObject_Serialize;
#if wxUSE_IOSTREAMH
# include <ostream.h>
#else
# include <ostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
/*
* Dynamic object system declarations
*/

View File

@@ -34,7 +34,15 @@ public:
void OnExit();
};
class WXDLLIMPORT ofstream;
#if wxUSE_IOSTREAMH
# include <fstream.h>
#else
# include <fstream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
class WXDLLEXPORT wxPostScriptDC: public wxDC
{
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)

View File

@@ -919,7 +919,17 @@ inline bool operator>=(const char * s1, const wxString& s2) { return s2.Cmp(s1)
#ifdef STD_STRING_COMPATIBILITY
// fwd decl
class WXDLLEXPORT istream;
// Known not to work with wxUSE_IOSTREAMH set to 0, so
// replacing with includes (on advice of ungod@pasdex.com.au)
// class WXDLLEXPORT istream;
#if wxUSE_IOSTREAMH
#include <istream.h>
#else
#include <istream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
istream& WXDLLEXPORT operator>>(istream& is, wxString& str);

View File

@@ -27,6 +27,9 @@
#include <iostream.h>
#else
#include <iostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
#ifdef __X__

View File

@@ -25,6 +25,9 @@
#include <iostream.h>
#else
#include <iostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
/*

View File

@@ -25,6 +25,9 @@
#include <iostream.h>
#else
#include <iostream>
# ifdef _MSC_VER
using namespace std;
# endif
#endif
#include "wx/list.h"