Home | History | Annotate | Download | only in stlport
      1 /*
      2  * Copyright (c) 1999
      3  * Silicon Graphics Computer Systems, Inc.
      4  *
      5  * Copyright (c) 1999
      6  * Boris Fomitchev
      7  *
      8  * This material is provided "as is", with absolutely no warranty expressed
      9  * or implied. Any use is at your own risk.
     10  *
     11  * Permission to use or copy this software for any purpose is hereby granted
     12  * without fee, provided the above notices are retained on all copies.
     13  * Permission to modify the code and to distribute modified code is granted,
     14  * provided the above notices are retained, and a notice that the code was
     15  * modified is included with the above copyright notice.
     16  *
     17  */
     18 
     19 
     20 // This header defines classes basic_filebuf, basic_ifstream,
     21 // basic_ofstream, and basic_fstream.  These classes represent
     22 // streambufs and streams whose sources or destinations are files.
     23 
     24 #ifndef _STLP_FSTREAM
     25 
     26 #ifndef _STLP_OUTERMOST_HEADER_ID
     27 #  define _STLP_OUTERMOST_HEADER_ID 0x1025
     28 #  include <stl/_prolog.h>
     29 #  define _STLP_FSTREAM
     30 #  if defined (__DMC__) && defined (_DLL)
     31 #    define _STLP_CLASS_IMPORT_DECLSPEC __declspec(dllimport)
     32 #  endif
     33 #endif
     34 
     35 #if (_STLP_OUTERMOST_HEADER_ID == 0x1025) && \
     36    !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
     37 #  include <stl/_ioserr.h>
     38 
     39 #  ifndef _STLP_INTERNAL_FSTREAM_H
     40 #    include <stl/_fstream.h>
     41 #  endif
     42 #endif
     43 
     44 #if (_STLP_OUTERMOST_HEADER_ID != 0x1025) || defined (_STLP_IMPORT_VENDOR_STD)
     45 #  if defined (_STLP_HAS_INCLUDE_NEXT)
     46 #    include_next <fstream>
     47 #  else
     48 #    include _STLP_NATIVE_HEADER(fstream)
     49 #  endif
     50 #endif
     51 
     52 #if (_STLP_OUTERMOST_HEADER_ID == 0x1025)
     53 #  include <stl/_epilog.h>
     54 #  undef _STLP_OUTERMOST_HEADER_ID
     55 #  if defined (__DMC__) && defined (_DLL)
     56 #    undef _STLP_CLASS_IMPORT_DECLSPEC
     57 #    define _STLP_CLASS_IMPORT_DECLSPEC
     58 #  endif
     59 #endif
     60 
     61 #endif /* _STLP_FSTREAM */
     62 
     63 
     64 // Local Variables:
     65 // mode:C++
     66 // End:
     67