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 | Description |
---|---|
Open an existing configuration file | |
Import from an opened file | |
Export to an opened file | |
Close a configuration file | |
Get the default file extension for the implemented import format | |
Get a short description of the filetype for the implemented format | |
Create and open a new configuration file | |
Set the opened configuration as current active configuration | |
Get the Size of an opened configuration file | |
Asynchronously imports a configuration | |
Asynchronously exports a configuration |
_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 | Description |
---|---|
Import/Export to TwinCAT storage. | |
Import/Export to XML file format. |