knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowl
bindings
ruby
knowRuby
HandleResult.h
1
#pragma once
2
3
#include <clog_qt>
4
#include <cres_qt>
5
6
namespace
knowRuby
7
{
8
template
<
typename
_T_>
9
inline
_T_ handle(
const
cres_qresult<_T_>& _value)
10
{
11
if
(_value.is_successful())
12
{
13
return
_value.get_value();
14
}
15
else
16
{
17
throw
std::runtime_error(_value.get_error().get_message().toStdString());
18
}
19
}
20
}
// namespace knowRuby
Generated by
1.12.0