YARP
Yet Another Robot Platform
broker.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #include <yarp/manager/broker.h>
10 
11 using namespace yarp::manager;
12 
13 //unsigned int Broker::UNIQUEID = 0;
14 
16 {
17  UNIQUEID = 0;
18  eventSink = nullptr;
19  bWithWatchDog = false;
20 }
21 
22 Broker::~Broker() = default;
23 
25 {
26  eventSink = pEventSink;
27 }
28 
29 unsigned int Broker::generateID()
30 {
31  return UNIQUEID++;
32 }
yarp::manager::Broker::Broker
Broker()
Definition: broker.cpp:15
yarp::manager
Definition: application.h:24
yarp::manager::Broker::generateID
unsigned int generateID()
Definition: broker.cpp:29
yarp::manager::Broker::eventSink
BrokerEventSink * eventSink
Definition: broker.h:72
yarp::manager::Broker::~Broker
virtual ~Broker()
broker.h
yarp::manager::Broker::bWithWatchDog
bool bWithWatchDog
Definition: broker.h:73
yarp::manager::Broker::UNIQUEID
unsigned int UNIQUEID
Definition: broker.h:71
yarp::manager::BrokerEventSink
Definition: broker.h:23
yarp::manager::Broker::setEventSink
void setEventSink(BrokerEventSink *pEventSink)
Definition: broker.cpp:24