reSIProcate/rutil  9694
Public Types | Public Member Functions | Private Attributes
resip::ResipStdBuf Class Reference

Used to replace std::cerr, std::cout, etc. More...

#include <resipfaststreams.hxx>

Inheritance diagram for resip::ResipStdBuf:
Inheritance graph
[legend]
Collaboration diagram for resip::ResipStdBuf:
Collaboration graph
[legend]

List of all members.

Public Types

enum  BufType { null, stdCerr, stdCout }
typedef enum
resip::ResipStdBuf::BufType 
BufType

Public Member Functions

 ResipStdBuf (BufType type)
 ~ResipStdBuf (void)
virtual size_t writebuf (const char *s, size_t count)
virtual size_t readbuf (char *buf, size_t count)
virtual size_t putbuf (char ch)
virtual void flushbuf (void)
virtual UInt64 tellpbuf (void)

Private Attributes

BufType type_

Detailed Description

Used to replace std::cerr, std::cout, etc.

Definition at line 446 of file resipfaststreams.hxx.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
null 
stdCerr 
stdCout 

Definition at line 449 of file resipfaststreams.hxx.


Constructor & Destructor Documentation

resip::ResipStdBuf::ResipStdBuf ( BufType  type) [inline]

Definition at line 456 of file resipfaststreams.hxx.

            :type_(type)
      {}
resip::ResipStdBuf::~ResipStdBuf ( void  ) [inline]

Definition at line 460 of file resipfaststreams.hxx.

      {}

Member Function Documentation

virtual void resip::ResipStdBuf::flushbuf ( void  ) [inline, virtual]

Implements resip::ResipStreamBuf.

Definition at line 490 of file resipfaststreams.hxx.

      {}
virtual size_t resip::ResipStdBuf::putbuf ( char  ch) [inline, virtual]

Implements resip::ResipStreamBuf.

Definition at line 486 of file resipfaststreams.hxx.

References writebuf().

      {
         return writebuf(&ch,1);
      }

Here is the call graph for this function:

virtual size_t resip::ResipStdBuf::readbuf ( char *  buf,
size_t  count 
) [inline, virtual]

Implements resip::ResipStreamBuf.

Definition at line 482 of file resipfaststreams.hxx.

      {
         return 0;
      }
virtual UInt64 resip::ResipStdBuf::tellpbuf ( void  ) [inline, virtual]

Implements resip::ResipStreamBuf.

Definition at line 492 of file resipfaststreams.hxx.

      {
         return 0;
      }
virtual size_t resip::ResipStdBuf::writebuf ( const char *  s,
size_t  count 
) [inline, virtual]

Implements resip::ResipStreamBuf.

Definition at line 463 of file resipfaststreams.hxx.

References stdCerr, stdCout, and type_.

Referenced by putbuf().

      {
         switch (type_)
         {
            case stdCerr:
            {
               std::cerr << s;
               break;
            }
            case stdCout:
            {
               std::cout << s;
               break;
            }
            default:
               break;
         }
         return count;
      }

Member Data Documentation

Definition at line 498 of file resipfaststreams.hxx.

Referenced by writebuf().


The documentation for this class was generated from the following file: