|
MUSX Document Model
|
Contains the parsed instruction type with its data. More...
#include <ShapeDesigner.h>
Public Member Functions | |
| bool | valid () const noexcept |
| Returns true is the data is valid. | |
| template<typename T > | |
| void | setPayload (std::optional< T > &&optData) |
| Sets the payload. | |
Public Attributes | |
| ShapeDefInstructionType | type {} |
| Instruction type. | |
| InstructionData | data {std::monostate{}} |
| Data for instruction. | |
Contains the parsed instruction type with its data.
|
inline |
Sets the payload.
| T | The instruction-specific type for the data. |
| optData | The data supplied from the parse routine. |