libcamera: yaml_parser: Rename Getter to Accessor

In preparation for support to set the value of a YamlObject, rename the
Getter structure to Accessor. The structure will be extended with a
set() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2025-10-17 21:53:34 +03:00
parent c6aace4467
commit 56e679ee09
6 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ private:
#ifndef __DOXYGEN__
template<>
struct YamlObject::Getter<ipa::LscPolynomial> {
struct YamlObject::Accessor<ipa::LscPolynomial> {
std::optional<ipa::LscPolynomial> get(const YamlObject &obj) const
{
std::optional<double> cx = obj["cx"].get<double>();
+1 -1
View File
@@ -435,7 +435,7 @@ std::string Pwl::toString() const
*/
template<>
std::optional<ipa::Pwl>
YamlObject::Getter<ipa::Pwl>::get(const YamlObject &obj) const
YamlObject::Accessor<ipa::Pwl>::get(const YamlObject &obj) const
{
/* Treat a single value as single point PWL. */
if (obj.isValue()) {