11#include <initializer_list>
32 const std::initializer_list<std::string_view> confPath)
const
35 for (
auto part : confPath) {
43 std::optional<std::vector<std::string>>
listOption(
44 const std::initializer_list<std::string_view> confPath)
const;
48 bool loadFile(
const std::filesystem::path &fileName);
50 std::unique_ptr<ValueNode> configuration_ =
51 std::make_unique<ValueNode>();
GlobalConfiguration()
Initialize the global configuration.
Definition global_configuration.cpp:155
const ValueNode & configuration() const
Retrieve the libcamera global configuration.
Definition global_configuration.cpp:268
unsigned int version() const
Retrieve the configuration version.
Definition global_configuration.cpp:252
std::optional< std::vector< std::string > > listOption(const std::initializer_list< std::string_view > confPath) const
Retrieve the value of configuration option confPath.
Definition global_configuration.cpp:289
std::optional< T > option(const std::initializer_list< std::string_view > confPath) const
Retrieve the value of configuration option confPath.
Definition global_configuration.h:31
A class representing a tree structure of values.
Definition value_node.h:27
std::optional< T > get() const
Parse the ValueNode as a T value.
Definition value_node.h:211
Top-level libcamera namespace.
Definition backtrace.h:17
Miscellaneous utility functions.
Data structure to manage tree of values.