OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::controls::ParseError Struct Reference

Diagnostic for the most recent parseRuleText() rejection. More...

#include <Controls.hpp>

Collaboration diagram for openswmm::controls::ParseError:

Public Attributes

int line = -1
 1-based line in the submitted text; -1 if unknown
 
std::string message
 Human-readable reason for the rejection.
 

Detailed Description

Diagnostic for the most recent parseRuleText() rejection.

line is 1-based and indexes the original rule text, counting blank lines, so it can be shown directly against what the caller submitted. Both fields are only meaningful after parseRuleText() returns < 0.

Member Data Documentation

◆ line

int openswmm::controls::ParseError::line = -1

1-based line in the submitted text; -1 if unknown

◆ message

std::string openswmm::controls::ParseError::message

Human-readable reason for the rejection.


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