00001 /* 00002 * This file is part of openMask © INRIA, CNRS, Universite de Rennes 1 1993-2002, thereinafter the Software 00003 * 00004 * The Software has been developped within the Siames Project. 00005 * INRIA, the University of Rennes 1 and CNRS jointly hold intellectual property rights 00006 * 00007 * The Software has been registered with the Agence pour la Protection des 00008 * Programmes (APP) under registration number IDDN.FR.001.510008.00.S.P.2001.000.41200 00009 * 00010 * This file may be distributed under the terms of the Q Public License 00011 * version 1.0 as defined by Trolltech AS of Norway and appearing in the file 00012 * LICENSE.QPL included in the packaging of this file. 00013 * 00014 * Licensees holding valid specific licenses issued by INRIA, CNRS or Université de Rennes 1 00015 * for the software may use this file in accordance with that specific license 00016 * 00017 */ 00018 #ifndef OMKEventHEADER 00019 #define OMKEventHEADER 00020 00021 //pour connaitre Date, les événements, TYPE_EVT 00022 #include <OMKEventIdentifier.h> 00023 #include <iostream> 00024 #include <list> 00025 #include <OMKFlowable.h> 00026 00027 class OMKEventAssociationList ; 00028 namespace OMK 00029 { 00030 class EventCreator ; 00036 class OMK_API Event : public Flowable { 00037 public: 00043 EventIdentifier eventId ; 00044 00047 Date date ; 00048 00051 Name sender ; 00052 00055 Name receiver ; 00057 00063 Event(const Event & originalEvent); 00064 00067 Event & operator = (const Event & originalEvent); 00068 00070 virtual Event * clone () const ; 00071 00075 virtual void insertInStream (std::ostream & out = std::cout) const; 00076 00080 virtual void extract (std::istream & in = std::cin); 00081 00082 00086 virtual void unpack (IncomingSynchronisationMessage &) ; 00087 00088 00090 virtual void pack (OutgoingSynchronisationMessage &) const ; 00091 00092 00099 Event(const EventIdentifier & event, const Date & date, const Name & sender, const Name & receiver); 00100 00101 00102 00105 virtual ~Event(); 00106 00107 00111 virtual bool isSystem() const ; 00112 00115 static Event * insertInList(std::list<Event *> * alist, Event * ); 00116 00118 protected: 00119 static EventCreator * _myEventCreator ; 00120 00121 00122 }; 00123 } // namespace OMK 00124 #endif 00125 00126 00127 00128
Documentation generated on Mon Jun 9 11:45:56 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |