Public Member Functions

base_soap::SOAPMemFileInputStream Class Reference

An input stream for the xercesc parser that takes the xml document from a memory buffer or file. More...

#include <libppbase/base_soap/SOAPMemFileInputStream.h>

List of all members.

Public Member Functions

 SOAPMemFileInputStream (base::MemFile *source, bool own)
 Constructor.
 ~SOAPMemFileInputStream ()
 Destructor.
unsigned int curPos () const
 Gets the current position within the xml document.
unsigned int readBytes (XMLByte *const toFill, const unsigned int maxToRead)
 Reads some bytes from the xml document.

Detailed Description

An input stream for the xercesc parser that takes the xml document from a memory buffer or file.

Author:
Christoph Schwarz
Version:
Id:
SOAPMemFileInputStream.h 21 2010-09-05 04:18:17Z cschwarz1

Constructor & Destructor Documentation

base_soap::SOAPMemFileInputStream::SOAPMemFileInputStream ( base::MemFile source,
bool  own 
)

Constructor.

Parameters:
source the source memory file
own flag: take ownership of this mem file

Member Function Documentation

unsigned int base_soap::SOAPMemFileInputStream::curPos (  )  const

Gets the current position within the xml document.

Returns:
the current position as byte offset
unsigned int base_soap::SOAPMemFileInputStream::readBytes ( XMLByte *const   toFill,
const unsigned int  maxToRead 
)

Reads some bytes from the xml document.

Parameters:
toFill the buffer that receives the bytes
maxToRead maximum number of bytes to read
Returns:
actual number of bytes read

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