summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-04 08:57:46 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-04 08:57:46 +0000
commitbb1f5d39959cfa83fb69c44daca57f326bf5c927 (patch)
tree164bbcca77e83451a9621ce673a31e7b05e68a67
parent0f5489223d4a5ed4c027516a6e18c9024a7dfcad (diff)
downloadATCD-bb1f5d39959cfa83fb69c44daca57f326bf5c927.tar.gz
*** empty log message ***
-rw-r--r--ace/iosfwd.h69
-rw-r--r--ace/streams.h107
2 files changed, 176 insertions, 0 deletions
diff --git a/ace/iosfwd.h b/ace/iosfwd.h
new file mode 100644
index 00000000000..0f94dd5a68c
--- /dev/null
+++ b/ace/iosfwd.h
@@ -0,0 +1,69 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// iosfwd.h
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+// = DESCRIPTION
+// This file contains the portability ugliness for the Standard C++
+// Library. As implementations of the "standard" emerge, this file
+// will need to be updated.
+//
+// This files deals with forward declaration for the stream
+// classes. Remember that since the new Standard C++ Library code
+// for streams uses templates, simple forward declaration will not
+// work.
+//
+// ============================================================================
+
+#if !defined (ACE_IOSFWD_H)
+#define ACE_IOSFWD_H
+
+#if !defined (ACE_USER_CONFIG_H)
+#define ACE_USER_CONFIG_H
+#include "ace/config.h"
+#endif /* ACE_USER_CONFIG_H */
+
+#if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
+
+#include /**/ <iosfwd>
+
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+
+// Make these available in the global name space
+using std::ios;
+using std::streambuf;
+using std::istream;
+using std::ostream;
+using std::iostream;
+using std::filebuf;
+using std::ifstream;
+using std::ofstream;
+using std::fstream;
+
+#endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
+
+# else /* ACE_HAS_STANDARD_CPP_LIBRARY */
+
+class ios;
+class streambuf;
+class istream;
+class ostream;
+class iostream;
+class filebuf;
+class ifstream;
+class ofstream;
+class fstream;
+
+# endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
+
+#endif /* ACE_IOSFWD_H */
diff --git a/ace/streams.h b/ace/streams.h
new file mode 100644
index 00000000000..b3384a7ef8d
--- /dev/null
+++ b/ace/streams.h
@@ -0,0 +1,107 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// streams.h
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+// = DESCRIPTION
+// This file contains the portability ugliness for the Standard C++
+// Library. As implementations of the "standard" emerge, this file
+// will need to be updated.
+//
+// This files deals with the streams includes.
+//
+// ============================================================================
+
+#if !defined (ACE_STREAMS_H)
+#define ACE_STREAMS_H
+
+#if !defined (ACE_USER_CONFIG_H)
+#define ACE_USER_CONFIG_H
+#include "ace/config.h"
+#endif /* ACE_USER_CONFIG_H */
+
+#if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
+
+#if defined (_MSC_VER)
+#pragma warning(disable: 4018 4114 4146 4245)
+#pragma warning(disable: 4663 4664 4665 4511 4512)
+#endif /* _MSC_VER */
+
+#include /**/ <iomanip>
+#include /**/ <ios>
+#include /**/ <iostream>
+#include /**/ <istream>
+#include /**/ <ostream>
+#include /**/ <fstream>
+#include /**/ <streambuf>
+
+#if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
+
+// Make these available in the global name space
+using std::ios;
+using std::streambuf;
+using std::istream;
+using std::ostream;
+using std::iostream;
+using std::filebuf;
+using std::ifstream;
+using std::ofstream;
+using std::fstream;
+
+using std::cin;
+using std::cout;
+using std::cerr;
+using std::clog;
+
+using std::endl;
+using std::ends;
+using std::flush;
+
+using std::ws;
+
+using std::resetiosflags;
+using std::setfill;
+using std::setiosflags;
+using std::setprecision;
+using std::setw;
+
+using std::dec;
+using std::hex;
+using std::oct;
+
+#endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
+
+#if defined (_MSC_VER)
+#pragma warning(4: 4018 4114 4146 4245)
+#pragma warning(4: 4663 4664 4665 4512 4511)
+#endif /* _MSC_VER */
+
+#else /* ACE_HAS_STANDARD_CPP_LIBRARY */
+
+#include /**/ <fstream.h>
+#include /**/ <iostream.h>
+
+#if defined (ACE_WIN32)
+#if defined(_MSC_VER) // VSB
+#include /**/ <ios.h>
+#include /**/ <streamb.h>
+#include /**/ <istream.h>
+#include /**/ <ostream.h>
+#include /**/ <iomanip.h>
+#endif /* _MSC_VER */
+#include /**/ <strstrea.h> // VSB
+#endif /* ACE_WIN32 */
+
+#endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
+
+#endif /* ACE_STREAMS_H */