QcSignalParser Namespace
Parses the "signal" object of blocks (decision E-333): the kind of component and its numbers, and checks that the block has the state properties the kind needs (a lever needs powered, the wire power and its four sides, a repeater facing, delay, powered and locked ...). More...
| Header: | #include <common/content/blockbehaviour/QcSignalParser.h> |
Functions
| QString | kindName(QcSignalKind kind) |
| QcSignalDefinition | parseSignal(const QcBlockDefinition &block, QcJsonFieldReader &signalReader, const QString &packNamespace) |
Detailed Description
Function Documentation
QString QcSignalParser::kindName(QcSignalKind kind)
Returns the name of kind as written in data ("dust", "lever", ...), empty for None.
QcSignalDefinition QcSignalParser::parseSignal(const QcBlockDefinition &block, QcJsonFieldReader &signalReader, const QString &packNamespace)
Returns the signal definition read by signalReader, which also takes the failures, with names qualified in packNamespace; block is the block read so far (its state properties and container).