Moved all code to src/ and include/ directories.

This commit is contained in:
Jesse Beder
2008-07-14 04:33:30 +00:00
parent 4cfa233888
commit cadc04ce47
35 changed files with 43 additions and 33 deletions

25
src/parserstate.cpp Normal file
View File

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