summaryrefslogtreecommitdiff
path: root/ace/iosfwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/iosfwd.h')
-rw-r--r--ace/iosfwd.h69
1 files changed, 69 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 */