Added Node::Clone function

This commit is contained in:
Jesse Beder
2009-08-24 20:10:42 +00:00
parent 8e636436f8
commit abe0af76c5
11 changed files with 78 additions and 2 deletions

View File

@@ -12,10 +12,19 @@ namespace YAML
{
}
Scalar::Scalar(const std::string& data): m_data(data)
{
}
Scalar::~Scalar()
{
}
Content *Scalar::Clone() const
{
return new Scalar(m_data);
}
void Scalar::Parse(Scanner *pScanner, const ParserState& /*state*/)
{
Token& token = pScanner->peek();
@@ -43,3 +52,4 @@ namespace YAML
return 0;
}
}