Commit Graph

5 Commits

Author SHA1 Message Date
Bård Skaflestad
03ac2cbd93 Add Property Tree Array Retrieval Mechanism
This commit adds a new member function

    template <typename T>
    std::optional<std::vector<T>>
    get_child_items_as_vector(const std::string& child) const;

which retrieves an array-type property value from a property tree.
Initially defined for 'int' and 'double', but could be extended to
'std::string', 'float', or other element types as needed.
2025-01-29 15:15:49 +01:00
Bård Skaflestad
999f98e281 Implement Property Tree Put/Get for std::size_t
This replaces the original specialisations for "bare" size_t from
the <stddef.h> header.

While here, also reorder the specialisations to match declaration
order in the header.
2025-01-29 13:48:31 +01:00
Bård Skaflestad
efede0a253 Document and Test PropertyTree Class
In particular, add Doxygen-style documentation to the header file
and add a simple unit test for the PropertyTree class interface.

While here, also add missing headers and prefer template argument
deduction over explicit template arguments.
2025-01-29 12:58:29 +01:00
Arne Morten Kvarving
f8c04129dd PropertyTree: add instances for float 2024-08-19 13:09:41 +02:00
Arne Morten Kvarving
b7e2ad3bfe added: PropertyTree class
this is a thin wrapper around boost::property_tree
with this we avoid parsing property tree headers in all
simulator objects
2021-06-09 15:21:52 +02:00