Event.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package ArmarX::Core
19 * @author Kai Welke (welke@kit.edu)
20 * @date 2012
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24 
25 #pragma once
26 
28 
29 #include <ArmarXCore/interface/observers/Event.h>
30 //#include <IceUtil/Handle.h>
31 
32 
33 
34 
35 namespace armarx
36 {
37  class Variant;
38  class Event;
39  /**
40  * Typedef of EventPtr as IceInternal::Handle<Event> for convenience.
41  */
43 
44  /**
45  * @class Event
46  * @brief An Event is used to communicate between e.g. condition handlers and statecharts.
47  * @ingroup ObserversGrp
48  *
49  * The receiver is always a statechart.
50  * It contains a dictionary for additional data of any kind.
51  */
53  virtual public EventBase
54  {
55  public:
56  Event();
57 
58  Event(std::string eventReceiverName, std::string eventName);
59 
60 
61  EventPtr add(const std::string key, const Variant& value);
62  EventPtr add(const std::string key, const VariantContainerBasePtr& valueContainer);
63 
64  Ice::ObjectPtr ice_clone() const override;
65 
66  virtual EventPtr clone() const;
67  };
68 
69 }
70 extern template class ::IceInternal::Handle<::armarx::Event>;
71 
armarx::Variant
The Variant class is described here: Variants.
Definition: Variant.h:224
IceInternal::Handle< Event >
armarx::Event
An Event is used to communicate between e.g. condition handlers and statecharts.
Definition: Event.h:52
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
ImportExport.h
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
ARMARXCORE_IMPORT_EXPORT
#define ARMARXCORE_IMPORT_EXPORT
Definition: ImportExport.h:38
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28