"...composable_kernel_rocm.git" did not exist on "aa0b05156fce5f5f088f512d2da5082685234538"
Commit 110a7f06 authored by Jesse Beder's avatar Jesse Beder
Browse files

No commit message

No commit message
parent bb55b0ba
#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)
{
}
}
#pragma once
#include <string>
namespace YAML
{
class Node;
class Document
{
public:
Document();
Document(const std::string& fileName);
~Document();
void Clear();
void Load(const std::string& fileName);
private:
Node *m_pRoot;
};
}
#include "document.h"
int main()
{
YAML::Document doc("test.yaml");
return 0;
}
\ No newline at end of file
#include "node.h"
namespace YAML
{
Node::Node()
{
}
Node::~Node()
{
}
}
#pragma once
#include <string>
namespace YAML
{
const std::string Str = "!!str";
const std::string Seq = "!!seq";
const std::string Map = "!!map";
class Node
{
public:
Node();
~Node();
private:
std::string m_tag;
};
}
---
test
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment