IEvtCfgParser

With the TcEventConfig library a set of standard parsers are shipped. Amon theese are e.g. the Xml and Tps parsers.
Each of theese parsers implement the IEvtCfgParser Interface.
Custom parsers can be added to the system at will. Required is only the implementation of this interface and a simple registration.
To build your own parser see the c++ sample.

The following interface description shows, how the EvtCfgParser Interface is defined and how each implementation has to react on function calls.
See a list of supplied parsers below, to check for their specific implementation details.

IEvtCfgParser Methods and Properties in Vtable Order

IEvtCfgParser Methods

Description

OpenConfiguration

Open an existing configuration file

Import

Import from an opened file

Export

Export to an opened file

CloseConfiguration

Close a configuration file

DefFileExt

Get the default file extension for the implemented import format

DefFileType

Get a short description of the filetype for the implemented format

CreateConfiguration

Create and open a new configuration file

ActivateConfiguration

Set the opened configuration as current active configuration

GetConfigSize

Get the Size of an opened configuration file

AsyncImport

Asynchronously imports a configuration

AsyncExport

Asynchronously exports a configuration

_IEvtCfgParserEvents Methods and Properties in Vtable Order

_IEvtCfgParserEvents Methods

Description

SourceLoaded

A source has been loaded

SourceSaved

A source has been saved

EventLoaded

An event has been loaded

EventSaved

An event has been saved

LinkLoaded

A link has been loaded

LinkSaved

A link has been saved

LoadComplete

Loading has completed

SaveComplete

Saving has completed

Parser implementations

Parser

Description

EvtCfgTpsParser

Import/Export to TwinCAT storage.

EvtCfgXMLParser

Import/Export to XML file format.