reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resipfaststreams.hxx File Reference

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

#include <cinttypes>
#include <iostream>
#include <stdio.h>
#include "rutil/ResipAssert.h"
#include "rutil/compat.hxx"
#include <memory>

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;
 

Macros

#define RESIP_USE_STL_STREAMS
 
#define EncodeStream   std::ostream
 
#define DecodeStream   std::istream
 
#define resipCerr   std::cerr
 
#define resipCout   std::cout
 

Functions

resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, const char *str)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, char ch)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, unsigned char ch)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, const unsigned char *str)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, signed char ch)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, const signed char *str)
 
resip::ResipFastOStream & resip::operator<< (resip::ResipFastOStream &ostr, const std::string &str)
 
template<typename T >
ResipFastOStream & resip::operator<< (ResipFastOStream &os, const std::shared_ptr< T > &ptr)
 

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.

Macro Definition Documentation

◆ DecodeStream

#define DecodeStream   std::istream

Definition at line 462 of file resipfaststreams.hxx.

◆ EncodeStream

#define EncodeStream   std::ostream

Definition at line 461 of file resipfaststreams.hxx.

◆ RESIP_USE_STL_STREAMS

#define RESIP_USE_STL_STREAMS

Definition at line 9 of file resipfaststreams.hxx.

◆ resipCerr

#define resipCerr   std::cerr

Definition at line 463 of file resipfaststreams.hxx.

◆ resipCout

#define resipCout   std::cout

Definition at line 464 of file resipfaststreams.hxx.