beckhoff — 6.7.6 IEvtCfgParser

Event Configuration Return Values S_OK The specified link was removed. E_INVALIDARG No link with the specified lang Id does exist. 6.7.5 IEvtCfgEnumParser The IEvtCfgEnumParser Interface is used to enumerate all registered parsers. EvtCfgParser objects are created through the IEvtConfiguration::EnumParsers [ } 28] method Table 6: Methods and Properties in Vtable Order 6.7.6 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. Table 7: IEvtCfgParser Methods and Properties in Vtable Order Table 8: _IEvtCfgParserEvents Methods and Properties in Vtable Order TcEventLogger 55 Version:

1.1 IEvtCfgEnumParser Methods Description Next Enum next X parser objects Reset Reset the enumerator Skip Skip the next X parsers VbNext VB and .NET compatible Next() method IEvtCfgParser Methods Description OpenConfiguration [} 60] Open an existing configuration file Import [} 59] Import from an opened file Export [} 58] Export to an opened file CloseConfiguration [} 57] Close a configuration file DefFileExt [} 57] Get the default file extension for the implemented import format DefFileType [} 58] Get a short description of the filetype for the implemented format CreateConfiguration [} 57] Create and open a new configuration file ActivateConfiguration [} 56] Set the opened configuration as current active configuration GetConfigSize [} 59] Get the Size of an opened configuration file AsyncImport [} 56] Asynchronously imports a configuration AsyncExport [} 56] Asynchronously exports a configuration IEvtCfgParserEvents Methods _ Description SourceLoaded A source has been loaded SourceSaved A source has been saved