OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::io::RelativeResult Struct Reference

Outcome of computing target relative to anchor_dir. More...

#include <PathResolver.hpp>

Collaboration diagram for openswmm::io::RelativeResult:

Public Attributes

std::string path
 
PathClass classification = PathClass::Invalid
 
int up_levels = 0
 
std::string warning
 

Detailed Description

Outcome of computing target relative to anchor_dir.

path is always forward-slash-separated, has no trailing slash, and contains no redundant ./ segments. For Relative, up_levels counts the leading .. segments. For the absolute variants, path is the platform-canonical absolute form (forward-slash separated for .inp portability).

warning is non-empty whenever classification != Relative, carrying a short human-readable explanation for the GUI to surface to the user.

Member Data Documentation

◆ classification

PathClass openswmm::io::RelativeResult::classification = PathClass::Invalid

◆ path

std::string openswmm::io::RelativeResult::path

◆ up_levels

int openswmm::io::RelativeResult::up_levels = 0

◆ warning

std::string openswmm::io::RelativeResult::warning

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