Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::sandbox::InspectionResult Struct Reference

Outcome of FrameInspector::Decode. streamValid is true iff the entire wire stream parsed without error — a false value means commands contains whatever the inspector was able to decode before the first failure, and error describes why it stopped. More...

#include "donner/editor/sandbox/FrameInspector.h"

Collaboration diagram for donner::editor::sandbox::InspectionResult:
[legend]

Public Attributes

std::vector< DecodedCommandcommands
bool streamValid = false
std::string error
int32_t finalDepth = 0
 Final nesting depth after the last successfully decoded command. Should be 0 for a well-formed frame; any non-zero value means the push/pop pairs are unbalanced.

Detailed Description

Outcome of FrameInspector::Decode. streamValid is true iff the entire wire stream parsed without error — a false value means commands contains whatever the inspector was able to decode before the first failure, and error describes why it stopped.

Member Data Documentation

◆ commands

std::vector<DecodedCommand> donner::editor::sandbox::InspectionResult::commands

◆ error

std::string donner::editor::sandbox::InspectionResult::error

◆ finalDepth

int32_t donner::editor::sandbox::InspectionResult::finalDepth = 0

Final nesting depth after the last successfully decoded command. Should be 0 for a well-formed frame; any non-zero value means the push/pop pairs are unbalanced.

◆ streamValid

bool donner::editor::sandbox::InspectionResult::streamValid = false

The documentation for this struct was generated from the following file: