lifecycle.cpp
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package SpeechX::ArmarXObjects::gui
17 * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#include "lifecycle.h"
24
26
27namespace armarx::gui
28{
32
33 void
41
42 void
50
51 void
59
60 void
66
67 void
73
74 void
80
81 void
85
86 void
90
91 void
95
96} // namespace armarx::gui
97
98void
100{
101 if (server && client)
102 {
103 server->connect(server,
105 [client](ManagedIceObject* o) { client->onInit(o); });
106 server->connect(server,
108 [client](ManagedIceObject* o) { client->onConnect(o); });
109 server->connect(server,
111 [client](ManagedIceObject* o) { client->onDisconnect(o); });
112 }
113}
The ManagedIceObject is the base class for all ArmarX objects.
virtual void onDisconnect(ManagedIceObject *component)
Definition lifecycle.cpp:52
virtual void onInit(ManagedIceObject &component)
Definition lifecycle.cpp:61
virtual void onConnect(ManagedIceObject *component)
Definition lifecycle.cpp:43
virtual void onInit(ManagedIceObject *component)
Definition lifecycle.cpp:34
void initialized(ManagedIceObject *component)
void connected(ManagedIceObject *component)
void disconnected(ManagedIceObject *component)
void connectLifecycle(LifecycleServer *server, LifecycleClient *client)
Definition lifecycle.cpp:99