Added yaml-cpp lib by sirnacnud

This commit is contained in:
pelya
2011-03-07 12:40:54 +02:00
parent b43f15d533
commit 451a500507
68 changed files with 7397 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
#include "parserstate.h"
namespace YAML
{
ParserState::ParserState()
{
// version
version.isDefault = true;
version.major = 1;
version.minor = 2;
}
const std::string ParserState::TranslateTagHandle(const std::string& handle) const
{
std::map <std::string, std::string>::const_iterator it = tags.find(handle);
if(it == tags.end()) {
if(handle == "!!")
return "tag:yaml.org,2002:";
return handle;
}
return it->second;
}
}