Changes in src/libcfa/iostream [53a6c2a:9ebd778]
- File:
-
- 1 edited
-
src/libcfa/iostream (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
r53a6c2a r9ebd778 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 7 08:35:59201713 // Update Count : 1 1812 // Last Modified On : Mon May 15 18:08:44 2017 13 // Update Count : 105 14 14 // 15 15 16 #pragma once 16 #ifndef __IOSTREAM_H__ 17 #define __IOSTREAM_H__ 17 18 18 19 #include "iterator" … … 25 26 const char * sepGetCur( ostype * ); // get current separator string 26 27 void sepSetCur( ostype *, const char * ); // set current separator string 27 _Bool getNL( ostype * ); // check newline28 void setNL( ostype *, _Bool ); // saw newline29 28 // public 30 29 void sepOn( ostype * ); // turn separator state on … … 44 43 ostype * write( ostype *, const char *, unsigned long int ); 45 44 int fmt( ostype *, const char fmt[], ... ); 46 }; // ostream45 }; 47 46 48 47 trait writeable( otype T ) { 49 48 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T ); 50 }; // writeable49 }; 51 50 52 51 // implement writable for intrinsic types … … 82 81 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, ostype * (*)( ostype * ) ); 83 82 forall( 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 * );86 83 forall( dtype ostype | ostream( ostype ) ) ostype * sepOn( ostype * ); 87 84 forall( dtype ostype | ostream( ostype ) ) ostype * sepOff( ostype * ); … … 106 103 istype * ungetc( istype *, char ); 107 104 int fmt( istype *, const char fmt[], ... ); 108 }; // istream105 }; 109 106 110 107 trait readable( otype T ) { 111 108 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, T ); 112 }; // readable109 }; 113 110 114 111 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, char * ); … … 139 136 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_cstrC ); 140 137 138 #endif // __IOSTREAM_H 139 141 140 // Local Variables: // 142 141 // mode: c //
Note:
See TracChangeset
for help on using the changeset viewer.