3rdparty
libpointmatcher
contrib
yaml-cpp-pm
src
directives.cpp
Go to the documentation of this file.
1
#include "
directives.h
"
2
3
namespace
YAML_PM
4
{
5
Directives::Directives
()
6
{
7
// version
8
version
.
isDefault
=
true
;
9
version
.
major
= 1;
10
version
.
minor
= 2;
11
}
12
13
const
std::string
Directives::TranslateTagHandle
(
const
std::string
& handle)
const
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
}
YAML_PM
Definition:
aliasmanager.h:11
YAML_PM::Version::isDefault
bool isDefault
Definition:
directives.h:15
directives.h
testing::internal::string
::std::string string
Definition:
gtest.h:1979
YAML_PM::Directives::Directives
Directives()
Definition:
directives.cpp:5
YAML_PM::Directives::version
Version version
Definition:
directives.h:24
YAML_PM::Directives::tags
std::map< std::string, std::string > tags
Definition:
directives.h:25
YAML_PM::Directives::TranslateTagHandle
const std::string TranslateTagHandle(const std::string &handle) const
Definition:
directives.cpp:13
YAML_PM::Version::major
int major
Definition:
directives.h:16
YAML_PM::Version::minor
int minor
Definition:
directives.h:16
mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:45:57