directives.cpp
Go to the documentation of this file.
00001 #include "directives.h"
00002 
00003 namespace YAML_PM
00004 {
00005         Directives::Directives()
00006         {
00007                 // version
00008                 version.isDefault = true;
00009                 version.major = 1;
00010                 version.minor = 2;
00011         }
00012         
00013         const std::string Directives::TranslateTagHandle(const std::string& handle) const
00014         {
00015                 std::map <std::string, std::string>::const_iterator it = tags.find(handle);
00016                 if(it == tags.end()) {
00017                         if(handle == "!!")
00018                                 return "tag:yaml.org,2002:";
00019                         return handle;
00020                 }
00021                 
00022                 return it->second;
00023         }
00024 }


libpointmatcher
Author(s):
autogenerated on Thu Jun 20 2019 19:51:29