RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PullInRouteConfigurator.cpp
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is part of the RSB project
4  *
5  * Copyright (C) 2011 Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
6  *
7  * This file may be licensed under the terms of the
8  * GNU Lesser General Public License Version 3 (the ``LGPL''),
9  * or (at your option) any later version.
10  *
11  * Software distributed under the License is distributed
12  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
13  * express or implied. See the LGPL for the specific language
14  * governing rights and limitations.
15  *
16  * You should have received a copy of the LGPL along with this
17  * program. If not, go to http://www.gnu.org/licenses/lgpl.html
18  * or write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  * The development of this software was supported by:
22  * CoR-Lab, Research Institute for Cognition and Robotics
23  * Bielefeld University
24  *
25  * ============================================================ */
26 
28 
29 #include <set>
30 
31 #include "../transport/InPullConnector.h"
33 
34 using namespace std;
35 
36 using namespace boost;
37 
38 using namespace rsb::transport;
39 
40 namespace rsb {
41 namespace eventprocessing {
42 
43 PullInRouteConfigurator::PullInRouteConfigurator(const Scope& scope,
44  const ParticipantConfig& config) :
45  InRouteConfigurator(scope, config) {
46 }
47 
49  // Pass all configured connectors a PullEventReceivingStrategy
50  // object, ensuring that they actually are InPullConnectors.
51  set<InConnectorPtr> connectors_ = getConnectors();
52  set<InPullConnectorPtr> connectors;
53  for (set<InConnectorPtr>::const_iterator it = connectors_.begin();
54  it != connectors_.end(); ++it) {
55  InPullConnectorPtr connector = dynamic_pointer_cast<InPullConnector>(*it);
56  assert(connector);
57  connectors.insert(connector);
58  }
60 }
61 
63  return "PullInRouteConfigurator";
64 }
65 
66 }
67 }
A class responsible of configuring the route that processes incoming events from one or more InConnec...
boost::shared_ptr< EventReceivingStrategy > EventReceivingStrategyPtr
EventReceivingStrategyPtr createEventReceivingStrategy()
Create and return a PullEventReceivingStrategy .
A class describing the configuration of Participant instances.
Objects of classes which implement this specialized InConnector interface provide the ability to rece...
boost::shared_ptr< InPullConnector > InPullConnectorPtr
Scope is a descriptor for a hierarchical channel of the unified bus.
Definition: Scope.h:46
Instances of this class retrieve Event s from transport::Connector s when explicitly asked by a clien...