directives.cpp
Go to the documentation of this file.
1 #include "directives.h"
2 
3 namespace YAML_PM
4 {
6  {
7  // version
8  version.isDefault = true;
9  version.major = 1;
10  version.minor = 2;
11  }
12 
14  {
15  std::map <std::string, std::string>::const_iterator it = tags.find(handle);
16  if(it == tags.end()) {
17  if(handle == "!!")
18  return "tag:yaml.org,2002:";
19  return handle;
20  }
21 
22  return it->second;
23  }
24 }
::std::string string
Definition: gtest.h:1979
std::map< std::string, std::string > tags
Definition: directives.h:25
const std::string TranslateTagHandle(const std::string &handle) const
Definition: directives.cpp:13


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:36:30