Commit Graph

18 Commits

Author SHA1 Message Date
Edward Diener
623c608793 Removed executable flag. 2017-09-16 07:15:09 -04:00
Jonathan Turkanis
ecbd2bd5e8 merged changes from iostreams_dev, revisions 42962-43059: updated copyright notices
[SVN r43061]
2008-02-02 22:10:46 +00:00
Jonathan Turkanis
49ba093a28 ported changes from branches/iostreams_dev revisions 42144-42265
[SVN r42266]
2007-12-24 00:27:12 +00:00
Jonathan Turkanis
4f85a131de I. Changed signature and specification of boost::iostreams::close(),
and made corresponding changes throughout the iostreams library.
   New spec is:
   
   template<typename T>
   void close(T& t);

     Convenience function for closing a device; calls close(t, in) and 
     close(t, out).

   template<typename T>
   void close(T& t, openmode which);

   template<typename T, typename Sink>
   void close(T& t, Sink& snk, openmode which);

     These two functions should only be called by the library implementation
     or by advanced users. The openmode parameter must always equal in or 
     out, never in | out.

     There are three cases:

     1. If T is not closable and which == out, calls boost::iostreams::flush

     2. If T operates on a single sequence, and is NOT a dual-use filter:

        a. If which == in and the mode of T is convertible to input but
           not to output, calls t.close() (or t.close(snk))

        b. If which == out and the mode of T is not convertible to input or
           is convertible to input and to output, calls t.close() 
           (or t.close(snk))

        The effect of a. and b. is that for any T in this category, 
        close() is called exactly once.

     3. If T operates on two sequences or is a dual-use filter, calls
        t.close(which) (or t.close(snk, which))

     If multiple operations that might throw must be called in the course
     of closing a filter or device, all of the operations are attempted
     and the first exception thrown by any of the operations is rethrown

  The new test close_test.cpp contains 95 checks verifying that the operation
  behaves as sepcified.

  This affects the following files:

    chain.hpp
    close.hpp
    code_converter.hpp
    combine.hpp
    compose.hpp
    copy.hpp
    detail/adapter/basic_adapter.hpp [removed]
    detail/adapter/device_adapter.hpp [new]
    detail/adapter/direct_adapter.hpp
    detail/adapter/filter_adapter.hpp [new]
    detail/adapter/mode_adapter.hpp
    detail/broken_overload_resolution/stream_buffer.hpp
    detail/closer.hpp [removed]
    detail/config/limits.hpp
    detail/execute.hpp [new]
    detail/functional.hpp [new]
    detail/streambuf/direct_streambuf.hpp
    detail/streambuf/indirect_streambuf.hpp
    detail/streambuf/linked_streambuf.hpp
    detail/vc6/close.hpp
    device/null.hpp
    filter/aggregate.hpp
    filter/bzip2.hpp
    filter/gzip.hpp
    filter/line.hpp
    filter/newline.hpp
    filter/symmetric.hpp
    filter/test.hpp
    invert.hpp
    restrict.hpp
    tee.hpp
    example/finite_state_filter.hpp
    test/Jamfile.v2
    test/close_test.cpp [new]
    test/code_converter_test.cpp
    test/execute_test.cpp [new]
    test/operation_sequence_test.cpp [new]

II. When exceptions are caught and ignored, we now use catch (...)
    uniformly instead of catch (std::exception&). This affects the 
    following files:

    stream_buffer.hpp
    src/mapped_file.cpp

III. Unnecessary dependence on Boost.Range has been eliminated. This
     affects the following files:

    detail/is_iterator_range.hpp
    detail/resolve.hpp
    traits.hpp
    test/Jamfile.v2
    test/filtering_stream_test.cpp
    test/offset_test.cpp
    test/seek_test.hpp
    test/seekable_filter_test.cpp
    test/sequence_test.cpp [new]
    test/wide_stream_test.cpp

IV. There are several fixes to the documentation. This affects the
    following files:

    doc/classes/symmetric_filter.html
    doc/guide/concepts.html
    doc/guide/modes.html
    doc/tutorial/container_device.html [serious error in algorithm]
    doc/tutorial/dictionary_filters.html [unused member variable]
    doc/tutorial/multichar_filters.html

V. Other changes include:

    stream.hpp [missing include directive]
    example/container_device.hpp [serious error in algorithm]
    example/container_device_example.cpp [outdated naming]
    example/container_sink_example.cpp [outdated naming]
    example/container_source_example.cpp [outdated naming]
    example/dictionary_filter.hpp [unused member variable]
    test/compose_test.cpp [added comments]
    test/example_test.cpp [reformatted]

[SVN r42047]
2007-12-14 19:30:07 +00:00
Jonathan Turkanis
1b7c3b4b21 removed debugging message
[SVN r30192]
2005-07-21 12:30:41 +00:00
Jonathan Turkanis
a8709e3555 renamed streambuf_facade, stream_facade and several filters
[SVN r30128]
2005-07-15 23:55:05 +00:00
Jonathan Turkanis
25b2d1c62f restored Codecvt template arg in test1; misc changes
[SVN r29434]
2005-06-05 08:18:38 +00:00
Jonathan Turkanis
541c971f0f made includion of file_descriptor.cpp conditional on BOOST_XXX_NO_LIB
[SVN r29413]
2005-06-03 18:45:04 +00:00
Jonathan Turkanis
14170545a9 como workaround
[SVN r29412]
2005-06-03 18:32:15 +00:00
Jonathan Turkanis
18f084a73e increase length of test strings
[SVN r29221]
2005-05-26 09:00:56 +00:00
Jonathan Turkanis
8f367f6f7a updated Boost.Test namespaces
[SVN r27570]
2005-03-08 02:25:34 +00:00
Jonathan Turkanis
307babd2a2 added #error directives for unsupported plaforms
[SVN r27337]
2005-02-12 21:11:18 +00:00
Jonathan Turkanis
02c7883c57 added include directive for add_facet.hpp
[SVN r27264]
2005-02-09 01:09:26 +00:00
Jonathan Turkanis
ca39c0c829 additional support for 'old' iostreams
[SVN r27237]
2005-02-08 09:02:47 +00:00
Jonathan Turkanis
74db877f09 renamed config/locale.hpp --> config/wide_streams.hpp
[SVN r27213]
2005-02-07 08:02:09 +00:00
Jonathan Turkanis
d6d09bebfb added codecvt_helper include; removed namespace qual. from codecvt_intern
[SVN r27161]
2005-02-06 03:44:40 +00:00
Jonathan Turkanis
81ace62bfb erged .hpp files into .cpp files
[SVN r27135]
2005-02-05 05:12:11 +00:00
Jonathan Turkanis
c0564c3c7c initial commitment
[SVN r26900]
2005-01-28 23:54:41 +00:00