Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/iostream

    r6ba0659 rd3b7937  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Feb 17 14:04:24 2016
    13 // Update Count     : 32
     12// Last Modified On : Fri Jan 29 15:50:36 2016
     13// Update Count     : 29
    1414//
    1515
     
    2222
    2323context ostream( dtype ostype ) {
     24        ostype *write( ostype *, const char *, streamsize_type );
    2425        int fail( ostype * );
    25         int flush( ostype * );
    26         ostype * write( ostype *, const char *, streamsize_type );
    2726};
     27
    2828context writeable( type T ) {
    2929        forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T );
     
    5252
    5353// writes the range [begin, end) to the given stream
    54 forall( type elt_type | writeable( elt_type ), type iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) )
     54forall( type elt_type | writeable( elt_type ),
     55                type iterator_type | iterator( iterator_type, elt_type ),
     56                dtype os_type | ostream( os_type ) )
    5557void write( iterator_type begin, iterator_type end, os_type *os );
    5658
    57 forall( type elt_type | writeable( elt_type ), type iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) )
     59forall( type elt_type | writeable( elt_type ),
     60                type iterator_type | iterator( iterator_type, elt_type ),
     61                dtype os_type | ostream( os_type ) )
    5862void write_reverse( iterator_type begin, iterator_type end, os_type *os );
    5963
    60 //---------------------------------------
     64//******************************************************************************
    6165
    6266context istream( dtype istype ) {
     67        istype *read( istype *, char *, streamsize_type );
     68        istype *unread( istype *, char );
    6369        int fail( istype * );
    6470        int eof( istype * );
    65         istype * get( istype *, int * );
    66         istype * read( istype *, char *, streamsize_type );
    67         istype * ungetc( istype *, char );
    6871};
    6972
Note: See TracChangeset for help on using the changeset viewer.