The YamlObject class is now a generic data container to model trees of values. Rename it to ValueNode and expand the class documentation. While at it, drop the unneeded libcamera:: namespace prefix when using the ValueNode class. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
25 lines
360 B
C++
25 lines
360 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2022, Google Inc.
|
|
*
|
|
* libcamera YAML parsing helper
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "libcamera/internal/value_node.h"
|
|
|
|
namespace libcamera {
|
|
|
|
class File;
|
|
|
|
class YamlParser final
|
|
{
|
|
public:
|
|
static std::unique_ptr<ValueNode> parse(File &file);
|
|
};
|
|
|
|
} /* namespace libcamera */
|