PoDoFo::PdfRefCountedInputDevice Class Reference

#include <PdfRefCountedInputDevice.h>

List of all members.

Public Member Functions

 PdfRefCountedInputDevice ()
 PdfRefCountedInputDevice (const char *pszFilename, const char *pszMode)
 PdfRefCountedInputDevice (const char *pBuffer, size_t lLen)
 PdfRefCountedInputDevice (PdfInputDevice *pDevice)
 PdfRefCountedInputDevice (const PdfRefCountedInputDevice &rhs)
 ~PdfRefCountedInputDevice ()
PODOFO_NOTHROW PdfInputDeviceDevice () const
const PdfRefCountedInputDeviceoperator= (const PdfRefCountedInputDevice &rhs)


Detailed Description

A reference counted input device object which is closed as soon as the last object having access to it is deleted.


Constructor & Destructor Documentation

PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice (  ) 

Created an empty reference counted input device object The input device will be initialize to NULL

PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice ( const char *  pszFilename,
const char *  pszMode 
)

Create a new PdfRefCountedInputDevice which reads from a file. The file is opened using fopen()

Parameters:
pszFilename a filename to be passed to fopen
pszMode a mode string that can be passed to fopen

PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice ( const char *  pBuffer,
size_t  lLen 
)

Create a new PdfRefCountedInputDevice which operates on a in memory buffer

Parameters:
pBuffer pointer to the buffer
lLen length of the buffer

PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice ( PdfInputDevice pDevice  ) 

Create a new PdfRefCountedInputDevice from an PdfInputDevice

Parameters:
pDevice the input device. It will be owned and deleted by this object.

PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice ( const PdfRefCountedInputDevice rhs  ) 

Copy an existing PdfRefCountedFile and increase the reference count

Parameters:
rhs the PdfRefCountedFile to copy

PoDoFo::PdfRefCountedInputDevice::~PdfRefCountedInputDevice (  ) 

Decrease the reference count and close the file if this is the last owner


Member Function Documentation

PdfInputDevice * PoDoFo::PdfRefCountedInputDevice::Device (  )  const [inline]

Get access to the file handle

Returns:
the file handle

const PdfRefCountedInputDevice & PoDoFo::PdfRefCountedInputDevice::operator= ( const PdfRefCountedInputDevice rhs  ) 

Copy an existing PdfRefCountedFile and increase the reference count

Parameters:
rhs the PdfRefCountedFile to copy
Returns:
the copied object


Generated on Sun Feb 12 13:16:03 2012 for PoDoFo by  doxygen 1.4.7