Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

IOStream.h File Reference

#include "ace/pre.h"
#include "ace/config-all.h"
#include "ace/OS.h"
#include "ace/streams.h"
#include "ace/IOStream_T.h"
#include "ace/post.h"

Include dependency graph for IOStream.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  ACE_Streambuf
 Create your custom streambuf by providing and ACE_*_Stream object to this template. I have tested it with ACE_SOCK_Stream and it should work fine for others as well. More...


Defines

#define GET_SIG(MT, DT)   inline virtual MT& operator>> (DT v)
#define GET_CODE
#define GET_PROT(MT, DT, CODE)   GET_SIG(MT,DT) CODE
#define GET_FUNC(MT, DT)   GET_PROT(MT,DT,GET_CODE)
#define PUT_SIG(MT, DT)   inline virtual MT& operator<< (DT v)
#define PUT_CODE
#define PUT_PROT(MT, DT, CODE)   PUT_SIG(MT,DT) CODE
#define PUT_FUNC(MT, DT)   PUT_PROT(MT,DT,PUT_CODE)
#define GET_FUNC_SET0(MT, CODE, CODE2)
#define PUT_FUNC_SET0(MT, CODE, CODE2)
#define GET_FUNC_SET1(MT, CODE, CODE2)
#define PUT_FUNC_SET1(MT, CODE, CODE2)
#define GET_MANIP_CODE   { if (ipfx ()) { (*func) (*this); } isfx (); return *this; }
#define PUT_MANIP_CODE   { if (opfx ()) { (*func) (*this); } osfx (); return *this; }
#define GET_FUNC_SET(MT)   GET_FUNC_SET1(MT,GET_CODE,GET_MANIP_CODE)
#define PUT_FUNC_SET(MT)   PUT_FUNC_SET1(MT,PUT_CODE,PUT_MANIP_CODE)
#define GETPUT_FUNC_SET(MT)   GET_FUNC_SET(MT) PUT_FUNC_SET(MT)
#define GET_SIG_SET(MT)   GET_FUNC_SET1(MT,= 0;,= 0;)
#define PUT_SIG_SET(MT)   PUT_FUNC_SET1(MT,= 0;,= 0;)
#define GETPUT_SIG_SET(MT)   GET_SIG_SET(MT) PUT_SIG_SET(MT)

Typedefs

typedef ios &(* __manip_ )(ios &)
typedef istream &(* __imanip_ )(istream &)
typedef ostream &(* __omanip_ )(ostream &)


Detailed Description

Id:
IOStream.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp

Author:
James CE Johnson <jcej@lads.com> , Jim Crossley <jim@lads.com>

Definition in file IOStream.h.


Define Documentation

#define GET_CODE
 

Value:

{                      \
        if (ipfx (0))                                   \
        {                                               \
                iostream::operator>> (v);               \
        }                                               \
        isfx ();                                        \
        return *this;                                   \
        }

Definition at line 371 of file IOStream.h.

#define GET_FUNC MT,
DT       GET_PROT(MT,DT,GET_CODE)
 

Definition at line 381 of file IOStream.h.

#define GET_FUNC_SET MT       GET_FUNC_SET1(MT,GET_CODE,GET_MANIP_CODE)
 

Definition at line 500 of file IOStream.h.

#define GET_FUNC_SET0 MT,
CODE,
CODE2   
 

Value:

GET_PROT(MT,short &,CODE) \
        GET_PROT(MT,u_short &,CODE) \
        GET_PROT(MT,int &,CODE) \
        GET_PROT(MT,u_int &,CODE) \
        GET_PROT(MT,long &,CODE) \
        GET_PROT(MT,u_long &,CODE) \
        GET_PROT(MT,float &,CODE) \
        GET_PROT(MT,double &,CODE) \
        GET_PROT(MT,char &,CODE) \
        GET_PROT(MT,u_char &,CODE) \
        GET_PROT(MT,char *,CODE) \
        GET_PROT(MT,u_char *,CODE) \
        inline virtual MT& operator>>(__omanip_ func) CODE2 \
        inline virtual MT& operator>>(__manip_ func)  CODE2

Definition at line 442 of file IOStream.h.

#define GET_FUNC_SET1 MT,
CODE,
CODE2   
 

Value:

GET_PROT(MT,signed char &,CODE) \
          GET_PROT(MT,signed char *,CODE) \
          GET_FUNC_SET0(MT,CODE,CODE2)

Definition at line 485 of file IOStream.h.

#define GET_MANIP_CODE   { if (ipfx ()) { (*func) (*this); } isfx (); return *this; }
 

Definition at line 497 of file IOStream.h.

#define GET_PROT MT,
DT,
CODE       GET_SIG(MT,DT) CODE
 

Definition at line 380 of file IOStream.h.

#define GET_SIG MT,
DT       inline virtual MT& operator>> (DT v)
 

Definition at line 360 of file IOStream.h.

#define GET_SIG_SET MT       GET_FUNC_SET1(MT,= 0;,= 0;)
 

Definition at line 504 of file IOStream.h.

#define GETPUT_FUNC_SET MT       GET_FUNC_SET(MT) PUT_FUNC_SET(MT)
 

Definition at line 502 of file IOStream.h.

#define GETPUT_SIG_SET MT       GET_SIG_SET(MT) PUT_SIG_SET(MT)
 

Definition at line 506 of file IOStream.h.

#define PUT_CODE
 

Value:

{                      \
        if (opfx ())                                    \
        {                                               \
                iostream::operator<< (v);               \
        }                                               \
        osfx ();                                        \
        return *this;                                   \
        }

Definition at line 398 of file IOStream.h.

#define PUT_FUNC MT,
DT       PUT_PROT(MT,DT,PUT_CODE)
 

Definition at line 408 of file IOStream.h.

#define PUT_FUNC_SET MT       PUT_FUNC_SET1(MT,PUT_CODE,PUT_MANIP_CODE)
 

Definition at line 501 of file IOStream.h.

#define PUT_FUNC_SET0 MT,
CODE,
CODE2   
 

Value:

PUT_PROT(MT,short,CODE) \
        PUT_PROT(MT,u_short,CODE) \
        PUT_PROT(MT,int,CODE) \
        PUT_PROT(MT,u_int,CODE) \
        PUT_PROT(MT,long,CODE) \
        PUT_PROT(MT,u_long,CODE) \
        PUT_PROT(MT,float,CODE) \
        PUT_PROT(MT,double,CODE) \
        PUT_PROT(MT,char,CODE) \
        PUT_PROT(MT,u_char,CODE) \
        PUT_PROT(MT,const char *,CODE) \
        PUT_PROT(MT,u_char *,CODE) \
        PUT_PROT(MT,void *,CODE) \
        inline virtual MT& operator<<(__omanip_ func) CODE2 \
        inline virtual MT& operator<<(__manip_ func)  CODE2

Definition at line 459 of file IOStream.h.

#define PUT_FUNC_SET1 MT,
CODE,
CODE2   
 

Value:

PUT_FUNC(MT,signed char) \
          PUT_FUNC(MT,const signed char *) \
          PUT_FUNC_SET0(MT,CODE,CODE2)

Definition at line 491 of file IOStream.h.

#define PUT_MANIP_CODE   { if (opfx ()) { (*func) (*this); } osfx (); return *this; }
 

Definition at line 498 of file IOStream.h.

#define PUT_PROT MT,
DT,
CODE       PUT_SIG(MT,DT) CODE
 

Definition at line 407 of file IOStream.h.

#define PUT_SIG MT,
DT       inline virtual MT& operator<< (DT v)
 

Definition at line 387 of file IOStream.h.

#define PUT_SIG_SET MT       PUT_FUNC_SET1(MT,= 0;,= 0;)
 

Definition at line 505 of file IOStream.h.


Typedef Documentation

typedef istream&(* __imanip_)(istream&)
 

Definition at line 348 of file IOStream.h.

typedef ios&(* __manip_)(ios&)
 

Definition at line 347 of file IOStream.h.

typedef ostream&(* __omanip_)(ostream&)
 

Definition at line 349 of file IOStream.h.


Generated on Mon Jun 16 11:41:47 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002