# Class TMultipageTemplateReader

Description
Hierarchy
Fields
Methods
Properties

## Unit

multipagetemplate

## Declaration

`type TMultipageTemplateReader = class(TObject)`

## Description

Class to process a multi-page template

see TMultiPageTemplate for a documentation of the allowed XML elements.

## Hierarchy

- TObject
- TMultipageTemplateReader

## Overview

### Fields

| `internet:TInternetAccess;`
| `parser: THtmlTemplateParser;`
| `onLog: TLogEvent;`
| `onPageProcessed: TPageProcessed;`
| `retryOnConnectionFailures: boolean;`
| `actionTrace: TStringArrayList;`

### Methods

| `constructor create(atemplate:TMultiPageTemplate; ainternet: TInternetAccess; patternMatcher: THtmlTemplateParser = nil);`
| `destructor destroy(); override;`
| `function findAction(name:string):TTemplateAction;`
| `procedure callAction(action:string);`
| `procedure callAction(const action:TTemplateAction);`

## Description

### Fields

| `internet:TInternetAccess;`
Object used to send requests and download pages

| `parser: THtmlTemplateParser;`
`Parser` used to apply the given single page templates to a downloaded page

| `onLog: TLogEvent;`
Log event

| `onPageProcessed: TPageProcessed;`
Event to access the changed variable state after each processed <page> element

| `retryOnConnectionFailures: boolean;`

| `actionTrace: TStringArrayList;`

### Methods

| `constructor create(atemplate:TMultiPageTemplate; ainternet: TInternetAccess; patternMatcher: THtmlTemplateParser = nil);`
Creates a reader using a certain template (atemplate is mandatory, ainternet optional)

| `destructor destroy(); override;`

| `function findAction(name:string):TTemplateAction;`
Searches the action element with the given id (equivalent to TMultiPageTemplate.findAction)

| `procedure callAction(action:string);`
Executes the action with the given id This does not modify the action, so you can use the same template with multiple readers (even in other threads)

| `procedure callAction(const action:TTemplateAction);`
Executes the given action This does not modify the action, so you can use the same template with multiple readers (even in other threads)

Generated by PasDoc 0.16.0.