libcamera: Rename YamlObject to ValueNode

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>
This commit is contained in:
Laurent Pinchart
2025-10-19 15:28:34 +03:00
parent 9be3ed8104
commit 554c5c7fa1
134 changed files with 813 additions and 800 deletions

View File

@@ -94,7 +94,7 @@ protected:
Dictionary,
};
int testObjectType(const YamlObject &obj, const char *name, Type type)
int testObjectType(const ValueNode &obj, const char *name, Type type)
{
bool isList = type == Type::List || type == Type::Size;
bool isScalar = !isList && type != Type::Dictionary;
@@ -194,7 +194,7 @@ protected:
return TestPass;
}
int testIntegerObject(const YamlObject &obj, const char *name, Type type,
int testIntegerObject(const ValueNode &obj, const char *name, Type type,
int64_t value)
{
uint64_t unsignedValue = static_cast<uint64_t>(value);
@@ -292,7 +292,7 @@ protected:
return TestFail;
}
std::unique_ptr<YamlObject> root = YamlParser::parse(file);
std::unique_ptr<ValueNode> root = YamlParser::parse(file);
if (root) {
cerr << "Invalid YAML file parse successfully" << std::endl;
return TestFail;