mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
This commit is contained in:
29
document.cpp
Normal file
29
document.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "document.h"
|
||||
#include "node.h"
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
Document::Document(): m_pRoot(0)
|
||||
{
|
||||
}
|
||||
|
||||
Document::Document(const std::string& fileName): m_pRoot(0)
|
||||
{
|
||||
Load(fileName);
|
||||
}
|
||||
|
||||
Document::~Document()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
||||
void Document::Clear()
|
||||
{
|
||||
delete m_pRoot;
|
||||
m_pRoot = 0;
|
||||
}
|
||||
|
||||
void Document::Load(const std::string& fileName)
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user