Class TMultipageTemplateReader

DescriptionHierarchyFieldsMethodsProperties

Unit

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

Public internet:TInternetAccess;
Public parser: THtmlTemplateParser;
Public onLog: TLogEvent;
Public onPageProcessed: TPageProcessed;
Public retryOnConnectionFailures: boolean;

Methods

Public constructor create(atemplate:TMultiPageTemplate; ainternet: TInternetAccess);
Public destructor destroy(); override;
Public function findAction(name:string):TTemplateAction;
Public procedure callAction(action:string);
Public procedure callAction(const action:TTemplateAction);

Description

Fields

Public internet:TInternetAccess;

Object used to send requests and download pages

Public parser: THtmlTemplateParser;

Parser used to apply the given single page templates to a downloaded page

Public onLog: TLogEvent;

Log event

Public onPageProcessed: TPageProcessed;

Event to access the changed variable state after each processed <page> element

Public retryOnConnectionFailures: boolean;
 

Methods

Public constructor create(atemplate:TMultiPageTemplate; ainternet: TInternetAccess);

Creates a reader using a certain template (atemplate is mandatory, ainternet optional)

Public destructor destroy(); override;
 
Public function findAction(name:string):TTemplateAction;

Searches the action element with the given id (equivalent to TMultiPageTemplate.findAction)

Public 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)

Public 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.14.0.