reSIProcate/rutil  9694
Public Member Functions | Private Member Functions
resip::DataStream Class Reference

An iostream that operates on an existing Data. More...

#include <DataStream.hxx>

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

List of all members.

Public Member Functions

 DataStream (Data &str)
 Constructs a DataStream with a Data to operate on.
 ~DataStream ()
 Calls flush on itself to force the update to the Data reference passed into the constructor.

Private Member Functions

 DataStream (const DataStream &)
DataStreamoperator= (const DataStream &)

Detailed Description

An iostream that operates on an existing Data.

The data written to the stream is appended to the reference passed to the constructor. The data is valid after DataStream's destructor is called. Data read from the stream is read from the reference passed to the constructor.

Definition at line 56 of file DataStream.hxx.


Constructor & Destructor Documentation

DataStream::DataStream ( Data str)

Constructs a DataStream with a Data to operate on.

Parameters:
strA Data to operate on.

Definition at line 164 of file DataStream.cxx.

References resip::Data::mShareEnum, and resip::Data::Share.

   : DataBuffer(str), 
#ifdef  RESIP_USE_STL_STREAMS
     std::iostream(this)
#else
   ResipFastOStream(this)
#endif
{
   // don't call this with a read-only buffer!
   assert(str.mShareEnum != Data::Share);
}
DataStream::~DataStream ( )

Calls flush on itself to force the update to the Data reference passed into the constructor.

Definition at line 176 of file DataStream.cxx.

{
   flush();
}
resip::DataStream::DataStream ( const DataStream ) [private]

Member Function Documentation

DataStream& resip::DataStream::operator= ( const DataStream ) [private]

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