reSIProcate/rutil  9694
Classes | Namespaces | Defines | Functions | Variables
resipfaststreams.hxx File Reference

Replaces STL streams for general encoding purposes. More...

#include <iostream>
#include <stdio.h>
#include <cassert>
#include "rutil/compat.hxx"
Include dependency graph for resipfaststreams.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  resip::ResipStreamBuf
class  resip::ResipBasicIOStream
class  resip::ResipFastOStream
 std::ostream replacement. More...
class  resip::ResipFastIStream
 std::istream replacement More...
class  resip::ResipStdBuf
 Used to replace std::cerr, std::cout, etc. More...
class  resip::ResipStdCOStream
 A direct replacement for std::cout, std::cerr, etc. More...

Namespaces

namespace  resip
 

dcm! -- add UnusedChecking(_enum) below;


Defines

#define RESIP_USE_STL_STREAMS
#define _TRUNCATE   -1
#define SNPRINTF_1(buffer, sizeofBuffer, count, format, var1)   snprintf(buffer,sizeofBuffer,format,var1)
#define LTOA(l, buffer, bufferlen, radix)   SNPRINTF_1(buffer,bufferlen,bufferlen,"%li",l)
#define ULTOA(ul, buffer, bufferlen, radix)   SNPRINTF_1(buffer,bufferlen,bufferlen,"%lu",ul)
#define I64TOA(value, string, sizeofstring, radix)   SNPRINTF_1(string,sizeofstring,sizeofstring,"%ll",value)
#define UI64TOA(value, string, sizeofstring, radix)   SNPRINTF_1(string,sizeofstring,sizeofstring,"%llu",value)
#define GCVT(f, sigdigits, buffer, bufferlen)   SNPRINTF_1(buffer,bufferlen,bufferlen,"%f",f)
#define _CVTBUFSIZE   309+40
#define EncodeStream   std::ostream
#define DecodeStream   std::istream
#define resipCerr   std::cerr
#define resipCout   std::cout

Functions

resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, const char *str)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, char ch)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, unsigned char ch)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, const unsigned char *str)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, signed char ch)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, const signed char *str)
resip::ResipFastOStreamresip::operator<< (resip::ResipFastOStream &ostr, const std::string &str)

Variables

ResipStdCOStream resip::resipFastNull

Detailed Description

Replaces STL streams for general encoding purposes.

#define RESIP_USE_STL_STREAMS will use the STL for stream encoding (std::ostream). Undefining RESIP_USE_STL_STREAMS will cause resip to use the alternative stream handling defined in this file for encoding objects.

Definition in file resipfaststreams.hxx.


Define Documentation

#define _CVTBUFSIZE   309+40

Definition at line 90 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define _TRUNCATE   -1

Definition at line 83 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define DecodeStream   std::istream

Definition at line 521 of file resipfaststreams.hxx.

#define EncodeStream   std::ostream

Definition at line 520 of file resipfaststreams.hxx.

#define GCVT (   f,
  sigdigits,
  buffer,
  bufferlen 
)    SNPRINTF_1(buffer,bufferlen,bufferlen,"%f",f)

Definition at line 89 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define I64TOA (   value,
  string,
  sizeofstring,
  radix 
)    SNPRINTF_1(string,sizeofstring,sizeofstring,"%ll",value)

Definition at line 87 of file resipfaststreams.hxx.

#define LTOA (   l,
  buffer,
  bufferlen,
  radix 
)    SNPRINTF_1(buffer,bufferlen,bufferlen,"%li",l)

Definition at line 85 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define RESIP_USE_STL_STREAMS

Definition at line 9 of file resipfaststreams.hxx.

#define resipCerr   std::cerr

Definition at line 522 of file resipfaststreams.hxx.

Referenced by main().

#define resipCout   std::cout

Definition at line 523 of file resipfaststreams.hxx.

#define SNPRINTF_1 (   buffer,
  sizeofBuffer,
  count,
  format,
  var1 
)    snprintf(buffer,sizeofBuffer,format,var1)

Definition at line 84 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define UI64TOA (   value,
  string,
  sizeofstring,
  radix 
)    SNPRINTF_1(string,sizeofstring,sizeofstring,"%llu",value)

Definition at line 88 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().

#define ULTOA (   ul,
  buffer,
  bufferlen,
  radix 
)    SNPRINTF_1(buffer,bufferlen,bufferlen,"%lu",ul)

Definition at line 86 of file resipfaststreams.hxx.

Referenced by resip::ResipFastOStream::operator<<().