Changes in libcfa/src/iostream.hfa [85d8153:6c5d92f]
- File:
-
- 1 edited
-
libcfa/src/iostream.hfa (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.hfa
r85d8153 r6c5d92f 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Apr 24 09:28:56202113 // Update Count : 3 9312 // Last Modified On : Tue Apr 20 19:09:44 2021 13 // Update Count : 385 14 14 // 15 15 … … 22 22 23 23 24 trait basic_ostream( ostype & ) {24 trait ostream( ostype & ) { 25 25 // private 26 26 bool sepPrt$( ostype & ); // get separator state (on/off) … … 47 47 void sepSetTuple( ostype &, const char [] ); // set tuple separator to string (15 character maximum) 48 48 49 void ends( ostype & ); // end of output statement 49 void ends( ostype & os ); // end of output statement 50 int fail( ostype & ); 51 int flush( ostype & ); 52 void open( ostype & os, const char name[], const char mode[] ); 53 void close( ostype & os ); 54 ostype & write( ostype &, const char [], size_t ); 50 55 int fmt( ostype &, const char format[], ... ) __attribute__(( format(printf, 2, 3) )); 51 int flush( ostype & ); 52 }; // basic_ostream 53 54 trait ostream( ostype & | basic_ostream( ostype ) ) { 55 bool fail( ostype & ); // operation failed? 56 void open( ostype &, const char name[], const char mode[] ); 57 void close( ostype & ); 58 ostype & write( ostype &, const char [], size_t ); 59 void acquire( ostype & ); // concurrent access 56 void acquire( ostype & ); 60 57 }; // ostream 61 58 … … 70 67 // implement writable for intrinsic types 71 68 72 forall( ostype & | basic_ostream( ostype ) ) {69 forall( ostype & | ostream( ostype ) ) { 73 70 ostype & ?|?( ostype &, bool ); 74 71 void ?|?( ostype &, bool ); … … 141 138 ostype & nlOn( ostype & ); 142 139 ostype & nlOff( ostype & ); 143 } // distribution144 145 forall( ostype & | ostream( ostype ) ) {146 140 ostype & acquire( ostype & ); 147 141 } // distribution … … 202 196 _Ostream_Manip(T) & sign( _Ostream_Manip(T) & fmt ) { fmt.flags.sign = true; return fmt; } \ 203 197 } /* distribution */ \ 204 forall( ostype & | basic_ostream( ostype ) ) { \198 forall( ostype & | ostream( ostype ) ) { \ 205 199 ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \ 206 200 void ?|?( ostype & os, _Ostream_Manip(T) f ); \ … … 247 241 _Ostream_Manip(T) & unit( _Ostream_Manip(T) & fmt ) { fmt.flags.nobsdp = true; return fmt; } \ 248 242 } /* distribution */ \ 249 forall( ostype & | basic_ostream( ostype ) ) { \243 forall( ostype & | ostream( ostype ) ) { \ 250 244 ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \ 251 245 void ?|?( ostype & os, _Ostream_Manip(T) f ); \ … … 267 261 _Ostream_Manip(char) & nobase( _Ostream_Manip(char) & fmt ) { fmt.flags.nobsdp = true; return fmt; } 268 262 } // distribution 269 forall( ostype & | basic_ostream( ostype ) ) {263 forall( ostype & | ostream( ostype ) ) { 270 264 ostype & ?|?( ostype & os, _Ostream_Manip(char) f ); 271 265 void ?|?( ostype & os, _Ostream_Manip(char) f ); … … 285 279 _Ostream_Manip(const char *) & nobase( _Ostream_Manip(const char *) & fmt ) { fmt.flags.nobsdp = true; return fmt; } 286 280 } // distribution 287 forall( ostype & | basic_ostream( ostype ) ) {281 forall( ostype & | ostream( ostype ) ) { 288 282 ostype & ?|?( ostype & os, _Ostream_Manip(const char *) f ); 289 283 void ?|?( ostype & os, _Ostream_Manip(const char *) f ); … … 300 294 301 295 void ends( istype & os ); // end of output statement 302 boolfail( istype & );296 int fail( istype & ); 303 297 int eof( istype & ); 304 298 void open( istype & is, const char name[] );
Note:
See TracChangeset
for help on using the changeset viewer.