contrib
yaml-cpp-pm
src
contrib
graphbuilder.cpp
Go to the documentation of this file.
1
#include "
yaml-cpp-pm/parser.h
"
2
#include "yaml-cpp-pm/contrib/graphbuilder.h"
3
#include "
graphbuilderadapter.h
"
4
5
namespace
YAML_PM
6
{
7
void
*
BuildGraphOfNextDocument
(
Parser
& parser, GraphBuilderInterface& graphBuilder)
8
{
9
GraphBuilderAdapter
eventHandler(graphBuilder);
10
if
(parser.
HandleNextDocument
(eventHandler)) {
11
return
eventHandler.
RootNode
();
12
}
else
{
13
return
NULL;
14
}
15
}
16
}
YAML_PM::GraphBuilderAdapter
Definition:
graphbuilderadapter.h:17
YAML_PM::BuildGraphOfNextDocument
void * BuildGraphOfNextDocument(Parser &parser, GraphBuilderInterface &graphBuilder)
Definition:
graphbuilder.cpp:7
graphbuilderadapter.h
YAML_PM::Parser::HandleNextDocument
bool HandleNextDocument(EventHandler &eventHandler)
Definition:
parser.cpp:44
parser.h
YAML_PM::GraphBuilderAdapter::RootNode
void * RootNode() const
Definition:
graphbuilderadapter.h:38
YAML_PM
Definition:
aliasmanager.h:11
YAML_PM::Parser
Definition:
parser.h:23
libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:36:30