Class: XMLWarningFactory
Create a list of system warnings.
Constructors
constructor
• new XMLWarningFactory(instrument
): XMLWarningFactory
Create an XMLWarningFactory.
Parameters
Name | Type | Description |
---|---|---|
instrument | BaseInstrument | The instrument that the warnings run in. |
Returns
Defined in
src/sdk/components/Warnings/XMLWarningAdapter.ts:14
Methods
parseConfig
▸ parseConfig(document
): Warning
[]
Parse a panel.xml configuration to create a list of warnings. The warning priority is defined by their order in panel.xml, with higher priority warnings coming sooner in the file.
Parameters
Name | Type | Description |
---|---|---|
document | Document | The configuration as an XML document. |
Returns
Warning
[]
An array of Warnings
Defined in
src/sdk/components/Warnings/XMLWarningAdapter.ts:25