mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
17 lines
430 B
C++
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
|