Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 621 Bytes

example-containers_params_by_name.md

File metadata and controls

33 lines (28 loc) · 621 Bytes

\page containers_params_by_name Example: containers_params_by_name

This is another use of mrpt::containers::yaml for parameter passing.

Example output:

CALL #1 ================================
'threshold' is 3.05
Is 'altitude' set? 1
Is 'level' set? 0
Level is : 666
Dump of all params:
%YAML 1.2
---
altitude: 100
threshold: 3.05

CALL #2 ================================
'threshold' is 3.05
Is 'altitude' set? 1
Is 'level' set? 1
Level is : -1
Dump of all params:
%YAML 1.2
---
altitude: 100
level: -1
threshold: 3.05

C++ example source code: \include containers_params_by_name/test.cpp