Preliminary setup - basic data structures are there.

This commit is contained in:
Jesse Beder 2008-06-25 23:00:18 +00:00
parent e22eea26b1
commit 4ed7f62431
12 changed files with 186 additions and 4 deletions

View file

@ -1,5 +1,6 @@
#include "document.h"
#include "node.h"
#include <fstream>
namespace YAML
{
@ -25,5 +26,10 @@ namespace YAML
void Document::Load(const std::string& fileName)
{
Clear();
std::ifstream fin(fileName.c_str());
m_pRoot = new Node;
m_pRoot->Read(fin);
}
}