filters

#include <TagProcessing.h>

Public Member Functions

 TagProcessing (const TQString &n, void(*p)(TQDomNode, void *, KWEFKWordLeader *), void *d)
 TagProcessing (const TQString &_name)

Public Attributes

TQString name
void(* processor )(TQDomNode, void *, KWEFKWordLeader *)
void * data

Detailed Description

The class TagProcessing and the two functions ProcessSubtags () and AllowNoSubtags () allow for easing parsing of subtags in the current tag.

If don't expect any subtags you call AllowNoSubtags (). Otherwise you create a list of TagProcessing elements and pass that to ProcessSubtags () which will go through all subtags it can find, call the corresponding processing function, and do all the necessary error handling.

Definition at line 55 of file TagProcessing.h.

Constructor & Destructor Documentation

◆ TagProcessing() [1/3]

TagProcessing::TagProcessing ( )
inline

Definition at line 58 of file TagProcessing.h.

◆ TagProcessing() [2/3]

TagProcessing::TagProcessing ( const TQString & n,
void(* p )(TQDomNode, void *, KWEFKWordLeader *),
void * d )
inline

Definition at line 61 of file TagProcessing.h.

◆ TagProcessing() [3/3]

TagProcessing::TagProcessing ( const TQString & _name)
inline

No-op constructor.

Avoids a warning that a tag is unknown.

Definition at line 71 of file TagProcessing.h.

Member Data Documentation

◆ data

void* TagProcessing::data

Definition at line 76 of file TagProcessing.h.

◆ name

TQString TagProcessing::name

Definition at line 74 of file TagProcessing.h.

◆ processor

void(* TagProcessing::processor) (TQDomNode, void *, KWEFKWordLeader *)

Definition at line 75 of file TagProcessing.h.


The documentation for this class was generated from the following file: