Merged contrib folders from the graphbuilder-api branch, including the recursive search in CMakeLists.txt

This commit is contained in:
jbeder
2011-03-02 04:48:04 +00:00
parent 0823af5369
commit 7b6e87277d
6 changed files with 352 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
#include "yaml-cpp/parser.h"
#include "yaml-cpp/contrib/graphbuilder.h"
#include "graphbuilderadapter.h"
namespace YAML
{
void *BuildGraphOfNextDocument(Parser& parser, GraphBuilderInterface& graphBuilder)
{
GraphBuilderAdapter eventHandler(graphBuilder);
if (parser.HandleNextDocument(eventHandler)) {
return eventHandler.RootNode();
} else {
return NULL;
}
}
}