pdcomm::clearFormattedProgramSelection
Function
Clears the current selection when token matches it.
inline bool clearFormattedProgramSelection(GemEquipment &endpoint, const GemFormattedProgramSelectionToken &token)Parameters
| Name | Description |
|---|---|
endpoint | Equipment endpoint with formatted program requests configured. |
token | Token of the current selection. A default (all-zero) token is accepted when nothing is selected. |
Returns
true when a selection was cleared; false when nothing was selected.
Notes
- Throws
pdcomm::Error:PDCOMM_STALE_TOKENwhentokendoes not match the current selection;PDCOMM_INVALID_STATEon a host or without a store.