Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.hfa

    r85d8153 r6c5d92f  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Apr 24 09:28:56 2021
    13 // Update Count     : 393
     12// Last Modified On : Tue Apr 20 19:09:44 2021
     13// Update Count     : 385
    1414//
    1515
     
    2222
    2323
    24 trait basic_ostream( ostype & ) {
     24trait ostream( ostype & ) {
    2525        // private
    2626        bool sepPrt$( ostype & );                                                       // get separator state (on/off)
     
    4747        void sepSetTuple( ostype &, const char [] );            // set tuple separator to string (15 character maximum)
    4848
    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 );
    5055        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 & );
    6057}; // ostream
    6158
     
    7067// implement writable for intrinsic types
    7168
    72 forall( ostype & | basic_ostream( ostype ) ) {
     69forall( ostype & | ostream( ostype ) ) {
    7370        ostype & ?|?( ostype &, bool );
    7471        void ?|?( ostype &, bool );
     
    141138        ostype & nlOn( ostype & );
    142139        ostype & nlOff( ostype & );
    143 } // distribution
    144 
    145 forall( ostype & | ostream( ostype ) ) {
    146140        ostype & acquire( ostype & );
    147141} // distribution
     
    202196        _Ostream_Manip(T) & sign( _Ostream_Manip(T) & fmt ) { fmt.flags.sign = true; return fmt; } \
    203197} /* distribution */ \
    204 forall( ostype & | basic_ostream( ostype ) ) { \
     198forall( ostype & | ostream( ostype ) ) { \
    205199        ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \
    206200        void ?|?( ostype & os, _Ostream_Manip(T) f ); \
     
    247241        _Ostream_Manip(T) & unit( _Ostream_Manip(T) & fmt ) { fmt.flags.nobsdp = true; return fmt; } \
    248242} /* distribution */ \
    249 forall( ostype & | basic_ostream( ostype ) ) { \
     243forall( ostype & | ostream( ostype ) ) { \
    250244        ostype & ?|?( ostype & os, _Ostream_Manip(T) f ); \
    251245        void ?|?( ostype & os, _Ostream_Manip(T) f ); \
     
    267261        _Ostream_Manip(char) & nobase( _Ostream_Manip(char) & fmt ) { fmt.flags.nobsdp = true; return fmt; }
    268262} // distribution
    269 forall( ostype & | basic_ostream( ostype ) ) {
     263forall( ostype & | ostream( ostype ) ) {
    270264        ostype & ?|?( ostype & os, _Ostream_Manip(char) f );
    271265        void ?|?( ostype & os, _Ostream_Manip(char) f );
     
    285279        _Ostream_Manip(const char *) & nobase( _Ostream_Manip(const char *) & fmt ) { fmt.flags.nobsdp = true; return fmt; }
    286280} // distribution
    287 forall( ostype & | basic_ostream( ostype ) ) {
     281forall( ostype & | ostream( ostype ) ) {
    288282        ostype & ?|?( ostype & os, _Ostream_Manip(const char *) f );
    289283        void ?|?( ostype & os, _Ostream_Manip(const char *) f );
     
    300294
    301295        void ends( istype & os );                                                       // end of output statement
    302         bool fail( istype & );
     296        int fail( istype & );
    303297        int eof( istype & );
    304298        void open( istype & is, const char name[] );
Note: See TracChangeset for help on using the changeset viewer.