NUGU SDK Linux
1.7.5
nugu_runner.hh
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef __NUGU_RUNNER_H__
18
#define __NUGU_RUNNER_H__
19
20
#include <functional>
21
#include <string>
22
23
namespace
NuguClientKit {
24
40
enum class
ExecuteType
{
41
Auto
,
42
Queued
,
43
Blocking
44
};
45
49
class
NuguRunnerPrivate;
50
54
class
NuguRunner
{
55
public
:
59
typedef
std::function<void()>
request_method
;
60
61
public
:
62
NuguRunner
();
63
virtual
~
NuguRunner
();
64
73
bool
invokeMethod
(
const
std::string& tag,
request_method
method,
ExecuteType
type =
ExecuteType::Auto
,
int
timeout = 0);
74
75
private
:
76
void
addMethod2Dispatcher(
const
std::string& tag,
NuguRunner::request_method
method,
ExecuteType
type);
77
78
private
:
79
NuguRunnerPrivate* d;
80
};
81
82
}
// NuguClientKit
83
84
#endif
// __NUGU_RUNNER_H__
NuguClientKit::NuguRunner
NuguRunner.
Definition:
nugu_runner.hh:54
NuguClientKit::NuguRunner::request_method
std::function< void()> request_method
The request method callback.
Definition:
nugu_runner.hh:59
NuguClientKit::ExecuteType
ExecuteType
ExecuteType.
Definition:
nugu_runner.hh:40
NuguClientKit::NuguRunner::invokeMethod
bool invokeMethod(const std::string &tag, request_method method, ExecuteType type=ExecuteType::Auto, int timeout=0)
Request to execute method on nugu loop.
NuguClientKit::ExecuteType::Auto
@ Auto
NuguClientKit::ExecuteType::Queued
@ Queued
NuguClientKit::ExecuteType::Blocking
@ Blocking
include
clientkit
nugu_runner.hh
Generated on Wed Aug 30 2023 09:35:57 for NUGU SDK Linux by
1.9.1