OW_NAMESPACE::HTTPLengthLimitStreamBuffer Class Reference

#include <OW_HTTPLenLimitIStream.hpp>

Inheritance diagram for OW_NAMESPACE::HTTPLengthLimitStreamBuffer:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::HTTPLengthLimitStreamBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HTTPLengthLimitStreamBuffer (std::istream &istr, UInt64 length)
virtual ~HTTPLengthLimitStreamBuffer ()
void resetLen (UInt64 len)
 sets the Len to a new value, sets m_pos to zero, and m_isEnd to false

Protected Member Functions

virtual int buffer_from_device (char *c, int n)
 Fill the buffer from the "device".

Private Member Functions

 HTTPLengthLimitStreamBuffer (const HTTPLengthLimitStreamBuffer &arg)
HTTPLengthLimitStreamBufferoperator= (const HTTPLengthLimitStreamBuffer &arg)

Private Attributes

std::istream & m_istr
UInt64 m_length
UInt64 m_pos
bool m_isEnd

Detailed Description

Definition at line 47 of file OW_HTTPLenLimitIStream.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::HTTPLengthLimitStreamBuffer::HTTPLengthLimitStreamBuffer std::istream &  istr,
UInt64  length
 

OW_NAMESPACE::HTTPLengthLimitStreamBuffer::~HTTPLengthLimitStreamBuffer  )  [virtual]
 

Definition at line 52 of file OW_HTTPLenLimitIStream.cpp.

OW_NAMESPACE::HTTPLengthLimitStreamBuffer::HTTPLengthLimitStreamBuffer const HTTPLengthLimitStreamBuffer arg  )  [private]
 


Member Function Documentation

int OW_NAMESPACE::HTTPLengthLimitStreamBuffer::buffer_from_device char *  c,
int  n
[protected, virtual]
 

Fill the buffer from the "device".

Parameters:
c A pointer to the beginning of the buffer
n The number of bytes to be read into the buffer.
Returns:
-1 if no bytes are able to be read from the "device" (for instance, end of input stream). Otherwise, return the number of bytes read into the buffer.

Reimplemented from OW_NAMESPACE::BaseStreamBuffer.

Definition at line 57 of file OW_HTTPLenLimitIStream.cpp.

References m_isEnd, m_istr, m_length, and m_pos.

HTTPLengthLimitStreamBuffer& OW_NAMESPACE::HTTPLengthLimitStreamBuffer::operator= const HTTPLengthLimitStreamBuffer arg  )  [private]
 

void OW_NAMESPACE::HTTPLengthLimitStreamBuffer::resetLen UInt64  len  ) 
 

sets the Len to a new value, sets m_pos to zero, and m_isEnd to false

Definition at line 77 of file OW_HTTPLenLimitIStream.cpp.

References OW_NAMESPACE::BaseStreamBuffer::initGetBuffer(), m_isEnd, m_length, and m_pos.

Referenced by OW_NAMESPACE::HTTPLenLimitIStream::resetLen().


Member Data Documentation

bool OW_NAMESPACE::HTTPLengthLimitStreamBuffer::m_isEnd [private]
 

Definition at line 67 of file OW_HTTPLenLimitIStream.hpp.

Referenced by buffer_from_device(), and resetLen().

std::istream& OW_NAMESPACE::HTTPLengthLimitStreamBuffer::m_istr [private]
 

Definition at line 60 of file OW_HTTPLenLimitIStream.hpp.

Referenced by buffer_from_device().

UInt64 OW_NAMESPACE::HTTPLengthLimitStreamBuffer::m_length [private]
 

Definition at line 63 of file OW_HTTPLenLimitIStream.hpp.

Referenced by buffer_from_device(), and resetLen().

UInt64 OW_NAMESPACE::HTTPLengthLimitStreamBuffer::m_pos [private]
 

Definition at line 65 of file OW_HTTPLenLimitIStream.hpp.

Referenced by buffer_from_device(), and resetLen().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:15:05 2006 for openwbem by  doxygen 1.4.6