src
core
src
global.cpp
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2020,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21
*
22
* Authors: Christoph Rösmann
23
*********************************************************************/
24
25
#include <
corbo-core/global.h
>
26
27
namespace
corbo
{
28
29
// variables
30
static
bool
global_ok
=
true
;
31
32
bool
ok
() {
return
global_ok
; }
33
void
setOk
(
bool
ok
) { global_ok =
ok
; }
34
35
}
// namespace corbo
global.h
corbo
Definition:
communication/include/corbo-communication/utilities.h:37
corbo::setOk
void setOk(bool ok)
Change the current program state to ok or request the termination of the current action.
Definition:
global.cpp:33
corbo::ok
bool ok()
global method to check whether to proceed or cancel the current action
Definition:
global.cpp:32
corbo::global_ok
static bool global_ok
Definition:
global.cpp:30
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:53