It should be possible to read FIGCONE_NODE_LIST from figcone::TreeNode::Any.
It should also be possible to read FIGCONE_NODE from figcone::TreeNode::Any if it contains a single element; otherwise, this should lead to an error.
This would allow the use of YAML with multiple document sections or JSON with a root node array (TCfg readYamlFile(const std::filesystem::path& configFile) would be changed to std::vector<TCfg> readYamlFile(const std::filesystem::path& configFile).
It would also be possible to enable the proper support for XML node lists by allowing child elements to have any name.
It should be possible to read
FIGCONE_NODE_LIST
fromfigcone::TreeNode::Any
. It should also be possible to readFIGCONE_NODE
fromfigcone::TreeNode::Any
if it contains a single element; otherwise, this should lead to an error.This would allow the use of YAML with multiple document sections or JSON with a root node array (
TCfg readYamlFile(const std::filesystem::path& configFile)
would be changed tostd::vector<TCfg> readYamlFile(const std::filesystem::path& configFile)
. It would also be possible to enable the proper support for XML node lists by allowing child elements to have any name.