PoDoFo::PdfRefCountedInputDevice Class Reference
#include <PdfRefCountedInputDevice.h>
List of all members.
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, |
|
|
long |
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 |
) |
|
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
Copy an existing PdfRefCountedFile and increase the reference count
- Parameters:
-
| rhs | the PdfRefCountedFile to copy |
- Returns:
- the copied object