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:
@@ -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>();
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user