VWorks software calls the
Compile method to notify the plugin of the state of a protocol’s compile sequence. With every call to this method,
VWorks software passes a value in the
iCompileType parameter that represents the current compilation stage. During the compile sequence, the plugin should do the following:
VWorks software passes a Command XML block into the
MetaDataXML parameter of the
Compile method.
If no errors occurred during protocol compilation, the plugin returns an empty CompileResult XML element in the
CompileResultXML parameter of the
Compile method.
The following sample code is an empty CompileResult XML element that is returned by the plugin to
VWorks software as a string in the
CompileResultXML parameter of the
Compile method. The plugin tells
VWorks software that no errors occurred during the protocol compilation.
If one or more errors occurred during protocol compilation, the plugin returns a CompileErrors XML block in the
CompileResultXML parameter of the
Compile method.
The CompilerErrors XML block contains the CompilerErrors element and all its children. This XML block describes any errors that occurred during protocol compilation, which the plugin must report to
VWorks software.
The CompilerErrors element contains one or more
CompilerError elements.
The CompilerError element has the following attributes:
The following sample code is a CompilerErrors XML block that is returned by the plugin to
VWorks software as a string in the
CompileResultXML parameter of the
Compile method. The plugin tells
VWorks software that the following two warning-type compiler errors occurred during the protocol compilation:
Warning: xyz and
Warning: xyzabc.