2023-06-14 16:52:36 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
2016-05-07 20:43:22 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-12-26 23:03:39 +01:00
|
|
|
#ifdef WITH_PUGIXML
|
2016-05-07 20:43:22 +02:00
|
|
|
|
2024-12-26 23:03:39 +01:00
|
|
|
# include "util/map.h"
|
|
|
|
|
# include "util/param.h"
|
|
|
|
|
# include "util/xml.h"
|
2016-05-07 20:43:22 +02:00
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
2024-12-26 23:03:39 +01:00
|
|
|
struct Node;
|
|
|
|
|
|
2016-05-07 20:43:22 +02:00
|
|
|
struct XMLReader {
|
|
|
|
|
map<ustring, Node *> node_map;
|
|
|
|
|
};
|
|
|
|
|
|
2025-01-01 18:15:54 +01:00
|
|
|
void xml_read_node(XMLReader &reader, Node *node, const xml_node xml_node);
|
|
|
|
|
xml_node xml_write_node(Node *node, const xml_node xml_root);
|
2016-05-07 20:43:22 +02:00
|
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|
2024-12-26 23:03:39 +01:00
|
|
|
|
|
|
|
|
#endif /* WITH_PUGIXML */
|