OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
UserFlagValuesHandler.hpp File Reference

[USER_FLAG_VALUES] section handler (R28). More...

#include <vector>
#include <string>
Include dependency graph for UserFlagValuesHandler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::input
 

Functions

void openswmm::input::handle_user_flag_values (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [USER_FLAG_VALUES] into ctx.user_flags (per-object values).
 

Detailed Description

[USER_FLAG_VALUES] section handler (R28).

Parses per-object flag value assignments. Each row binds a (ObjectType, ObjectName, FlagName) triple to a typed value. The flag must have been defined in [USER_FLAGS] first; if it is not, the row is stored anyway (with the raw string value as a STRING) and a warning is emitted.

Row format:

[USER_FLAG_VALUES]
;;ObjectType ObjectName FlagName Value
NODE J1 INSPECTED YES
NODE J1 PRIORITY 2
LINK C_MAIN ROUGHNESS_ADJ 1.05
LINK C_MAIN ASSET_ID "AM-00341"
SUBCATCHMENT S_WEST INSPECTED NO
ObjectType
Enumeration of object types used in SWMM5.
Definition enums.h:53
@ NODE
Node.
Definition enums.h:59
@ LINK
Link.
Definition enums.h:61
@ NO
No option.
Definition enums.h:1208
@ YES
Yes option.
Definition enums.h:1210
See also
UserFlags.hpp
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License