knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
Triple.cpp File Reference
#include "knowrob/semweb/Triple.h"
#include "knowrob/integration/python/utils.h"
#include "knowrob/Logger.h"
Include dependency graph for Triple.cpp:

Go to the source code of this file.

Namespaces

 knowrob
 
 knowrob::py
 

Functions

template<typename T >
xsdConv (std::string_view str)
 
template<typename T >
xsdConvFixed (std::string_view str)
 
bool xsdConvBool (std::string_view str)
 
template<>
void knowrob::py::createType< Triple > ()
 

Function Documentation

◆ xsdConv()

template<typename T >
T xsdConv ( std::string_view  str)

Definition at line 13 of file Triple.cpp.

13  {
14  T result;
15  std::istringstream(str.data()) >> result;
16  return result;
17 }

◆ xsdConvBool()

bool xsdConvBool ( std::string_view  str)

Definition at line 26 of file Triple.cpp.

26  {
27  bool result;
28  std::istringstream(str.data()) >> std::boolalpha >> result;
29  return result;
30 }

◆ xsdConvFixed()

template<typename T >
T xsdConvFixed ( std::string_view  str)

Definition at line 20 of file Triple.cpp.

20  {
21  T result;
22  std::istringstream(str.data()) >> std::fixed >> result;
23  return result;
24 }