Files
FastDeploy/third_party/yaml-cpp/src/contrib/graphbuilder.cpp
jiangjiajun 9d87046d78 first commit
2022-07-05 09:30:15 +00:00

17 lines
430 B
C++

#include "graphbuilderadapter.h"
#include "yaml-cpp/parser.h" // IWYU pragma: keep
namespace YAML {
class GraphBuilderInterface;
void* BuildGraphOfNextDocument(Parser& parser,
GraphBuilderInterface& graphBuilder) {
GraphBuilderAdapter eventHandler(graphBuilder);
if (parser.HandleNextDocument(eventHandler)) {
return eventHandler.RootNode();
}
return nullptr;
}
} // namespace YAML