PoDoFo 0.9.6
|
#include <PdfRefCountedInputDevice.h>
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 PdfInputDevice * | Device () const |
const PdfRefCountedInputDevice & | operator= (const PdfRefCountedInputDevice &rhs) |
A reference counted input device object which is closed as soon as the last object having access to it is deleted.
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()
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
pBuffer | pointer to the buffer |
lLen | length of the buffer |
PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice | ( | PdfInputDevice * | pDevice | ) |
Create a new PdfRefCountedInputDevice from an PdfInputDevice
pDevice | the input device. It will be owned and deleted by this object. |
PoDoFo::PdfRefCountedInputDevice::PdfRefCountedInputDevice | ( | const PdfRefCountedInputDevice & | rhs | ) |
Copy an existing PdfRefCountedInputDevice and increase the reference count
rhs | the PdfRefCountedInputDevice to copy |
PoDoFo::PdfRefCountedInputDevice::~PdfRefCountedInputDevice | ( | ) |
Decrease the reference count and close the file if this is the last owner
|
inline |
Get access to the file handle
const PdfRefCountedInputDevice & PoDoFo::PdfRefCountedInputDevice::operator= | ( | const PdfRefCountedInputDevice & | rhs | ) |
Copy an existing PdfRefCountedFile and increase the reference count
rhs | the PdfRefCountedFile to copy |