iDRS™ SDK 16
Loading...
Searching...
No Matches
IPageCollection_interface.h File Reference

Interface for IPageCollection wrapper. More...

Go to the source code of this file.

Functions

IPageCollection IPageCollection_Create (PtrGetTypeFn ptrGetTypeFn, PtrGetAtFn ptrGetAtFn, PtrSetAtFn ptrSetAtFn, PtrAddTailFn ptrAddTailFn, PtrSetPageProcessedFn ptrSetPageProcessedFn, PtrGetPageProcessedFn ptrGetPageProcessedFn, idrs_exception *pargException)
 Creates a new IPageCollection object.
 
void IPageCollection_Destroy (IPageCollection argIPageCollection, idrs_exception *pargException)
 Destroys a IPageCollection handle.
 
enum PageCollectionType IPageCollection_GetType (const IPageCollection argIPageCollection, idrs_exception *pargException)
 GetType returns the type of this collection, either default or custom.
 
CPage IPageCollection_GetAt (const IPageCollection argIPageCollection, IDRS_UINT const uiPageIndex, idrs_exception *pargException)
 GetAt returns the page at the specified index.
 
void IPageCollection_SetAt (IPageCollection argIPageCollection, IDRS_UINT const uiPageIndex, const CPage argPage, idrs_exception *pargException)
 Sets the page at the specified index in the collection.
 
void IPageCollection_AddTail (IPageCollection argIPageCollection, const CPage argPage, idrs_exception *pargException)
 Adds the specified page after the one stored with the highest index in the collection.
 
void IPageCollection_SetPageProcessed (IPageCollection argIPageCollection, IDRS_UINT const uiPageIndex, IDRS_BOOL const argValue, idrs_exception *pargException)
 Sets the flag that indicates whether the page at specified index has been processed by CDocumentWriter.
 
IDRS_BOOL IPageCollection_GetPageProcessed (const IPageCollection argIPageCollection, IDRS_UINT const uiPageIndex, idrs_exception *pargException)
 Reads the flag that indicates whether the page at specified index has been processed by CDocumentWriter.
 

Detailed Description

Interface for IPageCollection wrapper.

Function Documentation

◆ IPageCollection_AddTail()

void IPageCollection_AddTail ( IPageCollection  argIPageCollection,
const CPage  argPage,
idrs_exception *  pargException 
)

Adds the specified page after the one stored with the highest index in the collection.

Parameters
argIPageCollectionIPageCollection handle
argPageThe page object to insert
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ IPageCollection_Create()

IPageCollection IPageCollection_Create ( PtrGetTypeFn  ptrGetTypeFn,
PtrGetAtFn  ptrGetAtFn,
PtrSetAtFn  ptrSetAtFn,
PtrAddTailFn  ptrAddTailFn,
PtrSetPageProcessedFn  ptrSetPageProcessedFn,
PtrGetPageProcessedFn  ptrGetPageProcessedFn,
idrs_exception *  pargException 
)

Creates a new IPageCollection object.

Parameters
ptrGetTypeFnGetType function pointer
ptrGetAtFnGetAt function pointer
ptrSetAtFnSetAt function pointer
ptrAddTailFnAddTail function pointer
ptrSetPageProcessedFnSetPageProcessed function pointer
ptrGetPageProcessedFnGetPageProcessed function pointer
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The newly created IPageCollection

◆ IPageCollection_Destroy()

void IPageCollection_Destroy ( IPageCollection  argIPageCollection,
idrs_exception *  pargException 
)

Destroys a IPageCollection handle.

Parameters
argIPageCollectionIPageCollection handle to destroy
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ IPageCollection_GetAt()

CPage IPageCollection_GetAt ( const IPageCollection  argIPageCollection,
IDRS_UINT const  uiPageIndex,
idrs_exception *  pargException 
)

GetAt returns the page at the specified index.

Parameters
argIPageCollectionIPageCollection handle
uiPageIndexThe index of the page to retrieve
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The CPage object if it exists, a null pointer otherwise

◆ IPageCollection_GetPageProcessed()

IDRS_BOOL IPageCollection_GetPageProcessed ( const IPageCollection  argIPageCollection,
IDRS_UINT const  uiPageIndex,
idrs_exception *  pargException 
)

Reads the flag that indicates whether the page at specified index has been processed by CDocumentWriter.

Parameters
argIPageCollectionIPageCollection handle
uiPageIndexThe index of the page where to retrieve the PageProcessed flag.
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The flag value.

◆ IPageCollection_GetType()

enum PageCollectionType IPageCollection_GetType ( const IPageCollection  argIPageCollection,
idrs_exception *  pargException 
)

GetType returns the type of this collection, either default or custom.

Remarks
Integrator-defined page collections must return PageCollectionType::Custom
Returns
The collection type
Parameters
argIPageCollectionIPageCollection handle
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ IPageCollection_SetAt()

void IPageCollection_SetAt ( IPageCollection  argIPageCollection,
IDRS_UINT const  uiPageIndex,
const CPage  argPage,
idrs_exception *  pargException 
)

Sets the page at the specified index in the collection.

Parameters
argIPageCollectionIPageCollection handle
uiPageIndexThe index of the page
argPageThe page object to put in the collection
pargExceptionPointer to exception structure that will be filled if an exception occurs
Note
If the the index is out of bounds, for instance greater than the highest index in the collection, the missing elements are filled-in with empty records.

◆ IPageCollection_SetPageProcessed()

void IPageCollection_SetPageProcessed ( IPageCollection  argIPageCollection,
IDRS_UINT const  uiPageIndex,
IDRS_BOOL const  argValue,
idrs_exception *  pargException 
)

Sets the flag that indicates whether the page at specified index has been processed by CDocumentWriter.

Parameters
argIPageCollectionIPageCollection handle
uiPageIndexThe index of the page
argValueThe boolean flag value.
pargExceptionPointer to exception structure that will be filled if an exception occurs