event_record.h

Go to the documentation of this file.
00001 #ifndef EVENT_RECORD_CLASS
00002 #define EVENT_RECORD_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : event_record                                                      *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2005-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "event_flow_dll.h"
00019 
00020 #include <basis/byte_array.h>
00021 #include <basis/packable.h>
00022 #include <basis/set.h>
00023 
00025 
00030 class EVENT_FLOW_CLASS_STYLE event_record : public packable
00031 {
00032 public:
00033   int _id;  
00034   int _event;  
00035   byte_array _data;  
00036   int_set _targets;  
00037 
00038   event_record(int id = 0, int event = 0);
00039   event_record(int id, int event, const byte_array &data,
00040       const int_set &targets = int_set());
00041 
00042   ~event_record();
00043 
00044   enum events {
00045     DEFINE_EVENT(EMPTY_EVENT, 0, "No event occurred")
00047 
00049   };
00050 
00051   void pack(byte_array &packed_form) const;
00052   bool unpack(byte_array &packed_form);
00053 };
00054 
00055 #endif
00056 

Generated on Fri Nov 28 04:28:55 2008 for HOOPLE Libraries by  doxygen 1.5.1