ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
rux::StageParams Class Reference

Accumulates stage parameters as a JSON object. More...

#include <stage_bridge.hpp>

Public Member Functions

template<typename T>
StageParamsset (const char *key, const T &value)
template<typename T>
StageParamsset_if (bool condition, const char *key, const T &value)
 Set key only when condition holds.
std::string dump () const

Detailed Description

Accumulates stage parameters as a JSON object.

Floats are routed through fmt's shortest round-trip for their own type before being stored, so a 0.05f flag value stays 0.05 in pipeline_log.parameters instead of widening to 0.05000000074505806 the way a plain float-to-double conversion would render it. That column is read by humans (rux log), and it is what the CLI has always written.

Definition at line 47 of file stage_bridge.hpp.

Member Function Documentation

◆ dump()

std::string rux::StageParams::dump ( ) const
inline

Definition at line 67 of file stage_bridge.hpp.

◆ set()

template<typename T>
StageParams & rux::StageParams::set ( const char * key,
const T & value )
inline

Definition at line 51 of file stage_bridge.hpp.

Referenced by set_if().

◆ set_if()

template<typename T>
StageParams & rux::StageParams::set_if ( bool condition,
const char * key,
const T & value )
inline

Set key only when condition holds.

Used for the parameters whose mere presence carries meaning — an explicitly passed -d/-m pins that threshold and bypasses adaptive derivation for it (#214).

Definition at line 63 of file stage_bridge.hpp.

References set().


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