Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/iostream

    r53a6c2a r9ebd778  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul  7 08:35:59 2017
    13 // Update Count     : 118
     12// Last Modified On : Mon May 15 18:08:44 2017
     13// Update Count     : 105
    1414//
    1515
    16 #pragma once
     16#ifndef __IOSTREAM_H__
     17#define __IOSTREAM_H__
    1718
    1819#include "iterator"
     
    2526        const char * sepGetCur( ostype * );                                     // get current separator string
    2627        void sepSetCur( ostype *, const char * );                       // set current separator string
    27         _Bool getNL( ostype * );                                                        // check newline
    28         void setNL( ostype *, _Bool );                                          // saw newline
    2928        // public
    3029        void sepOn( ostype * );                                                         // turn separator state on
     
    4443        ostype * write( ostype *, const char *, unsigned long int );
    4544        int fmt( ostype *, const char fmt[], ... );
    46 }; // ostream
     45};
    4746
    4847trait writeable( otype T ) {
    4948        forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T );
    50 }; // writeable
     49};
    5150
    5251// implement writable for intrinsic types
     
    8281forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, ostype * (*)( ostype * ) );
    8382forall( dtype ostype | ostream( ostype ) ) ostype * endl( ostype * );
    84 forall( dtype ostype | ostream( ostype ) ) ostype * sep( ostype * );
    85 forall( dtype ostype | ostream( ostype ) ) ostype * sepTuple( ostype * );
    8683forall( dtype ostype | ostream( ostype ) ) ostype * sepOn( ostype * );
    8784forall( dtype ostype | ostream( ostype ) ) ostype * sepOff( ostype * );
     
    106103        istype * ungetc( istype *, char );
    107104        int fmt( istype *, const char fmt[], ... );
    108 }; // istream
     105};
    109106
    110107trait readable( otype T ) {
    111108        forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, T );
    112 }; // readable
     109};
    113110
    114111forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, char * );
     
    139136forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_cstrC );
    140137
     138#endif // __IOSTREAM_H
     139
    141140// Local Variables: //
    142141// mode: c //
Note: See TracChangeset for help on using the changeset viewer.