HoverRace  2.0
Static Public Member Functions | List of all members
HoverRace::Util::yaml::NodeFactory Class Reference

Generates the appropriate wrapper for LibYAML nodes. More...

#include <NodeFactory.h>

Static Public Member Functions

static NodeMakeNode (yaml_document_t *doc, yaml_node_t *node)
 Wrap a LibYAML node in a new yaml::Node instance. More...
 

Detailed Description

Generates the appropriate wrapper for LibYAML nodes.

Member Function Documentation

Node * HoverRace::Util::yaml::NodeFactory::MakeNode ( yaml_document_t *  doc,
yaml_node_t *  node 
)
static

Wrap a LibYAML node in a new yaml::Node instance.

Parameters
docThe LibYAML document which contains this node.
nodeThe LibYAML node (may not be NULL).
Returns
A new instance (never NULL). It is up to the caller to delete this instance.

The documentation for this class was generated from the following files: