PdsRoleMap class.
More...
|
virtual bool | DoesMap (const wchar_t *src, const wchar_t *dst)=0 |
|
virtual int | GetDirectMap (const wchar_t *type, wchar_t *buffer, int len)=0 |
|
PdsRoleMap class.
Represents mappings of structural element types present in a PDF document to standard element types having similar uses. There is one PdsClassMap per document, associated with the PdsStructTree.
◆ DoesMap()
virtual bool PdsRoleMap::DoesMap |
( |
const wchar_t * |
src, |
|
|
const wchar_t * |
dst |
|
) |
| |
|
pure virtual |
Determines whether the specified PdsRoleMap provides any mapping path for two given element types.
- Parameters
-
class_name | The string of a class name for which an associated attribute objects is found. |
src | The string for an element type whose mapping is tested. |
dst | The string for an element type. |
- Returns
- true if an mapping path was found, false otherwise.
◆ GetDirectMap()
virtual int PdsRoleMap::GetDirectMap |
( |
const wchar_t * |
type, |
|
|
wchar_t * |
buffer, |
|
|
int |
len |
|
) |
| |
|
pure virtual |
Gets the type, if any, directly mapped in the specified PdsRoleMap for the given element type.
- Parameters
-
type | The string for an element type whose mapping is found |
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
- Returns
- Number of characters written into buffer of required length.