PDFix SDK  6.5.0
PdsClassMap Struct Referenceabstract

PdsClassMap class. More...

Public Member Functions

virtual PdsObjectGetAttrObject (const wchar_t *class_name, int index)=0
 
virtual int GetNumAttrObjects (const wchar_t *class_name)=0
 Gets the number of attribute objects associated with a class name. More...
 

Detailed Description

PdsClassMap class.

Associates class identifiers, which are names, with objects of type PdsAttrObject. Structural elements maintain a list of names identifying classes to which they belong. The associated attributes are thus shared by all structural elements belonging to a given class. There is one class map per document, associated with the PdsStructTree.

Member Function Documentation

◆ GetAttrObject()

virtual PdsObject* PdsClassMap::GetAttrObject ( const wchar_t *  class_name,
int  index 
)
pure virtual

Gets the attribute object associated with the specified class name at an index in the class. If there is only one object and index is zero, that object is retrieved.

Parameters
class_nameThe string of a class name for which an associated attribute objects is found.
indexIndex of the desired attribute object in the class.
Returns
Attribute object at index. Set to Null if there is no attribute object at the specified location.

◆ GetNumAttrObjects()

virtual int PdsClassMap::GetNumAttrObjects ( const wchar_t *  class_name)
pure virtual

Gets the number of attribute objects associated with a class name.

Parameters
class_nameThe string of a class name for which the number of associated attribute objects is found.
Returns
Number of attribute objects associated with the class in class_name.