Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsEvent.h

Go to the documentation of this file.
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 PsEventHEADER
00019 #define PsEventHEADER
00020 
00021  //pour connaitre PsDate, les événements, TYPE_EVT
00022 #include <PsEventIdentifier.h>
00023 #include <PsList.h>
00024 #include <iostream>
00025 #include <PsFlowable.h>
00026 
00027 class PsnEventAssociationList ; 
00028 class PsEventCreator ;
00029 
00035 class PsEvent : public PsFlowable {
00036 public:
00042       PsEventIdentifier eventId ;
00043    
00046       PsDate date ;
00047    
00050       PsName sender ;
00051 
00054       PsName receiver ;
00056 
00062    PsEvent(const PsEvent & originalEvent);
00063    
00066    PsEvent & operator = (const PsEvent & originalEvent);
00067    
00069    virtual PsEvent * clone () const ;
00070    
00074    virtual void insertInStream (ostream & out = cout) const;
00075    
00079    virtual void extract (istream & in = cin);
00080    
00081    
00085    virtual void unpack (PsIncomingSynchronisationMessage &) ;
00086    
00087    
00089    virtual void pack (PsOutgoingSynchronisationMessage &) const ;
00090 
00091 
00098    PsEvent(const PsEventIdentifier & event, const PsDate & date, const PsName & sender, const PsName & receiver);
00099    
00100 
00101 
00104    virtual ~PsEvent();
00105    
00106 
00110    virtual bool isSystem() const ;
00111 
00114    static PsEvent * insertInList(list<PsEvent *> * alist, PsEvent * );
00115    
00117 protected:
00118    static PsEventCreator * _myEventCreator ;
00119    
00120 
00121 };
00122 #endif
00123 
00124 
00125 
00126 

logo OpenMask

Documentation generated on Mon Nov 25 15:24:59 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001