fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/feeventloop.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           feeventloop.h  -  description
00003                              -------------------
00004     begin                : Di Jun 20 2006
00005     copyright            : (C) 2006 by 
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef FEEVENTLOOP_H
00019 #define FEEVENTLOOP_H
00020 
00021 
00022 #include <cstdio>
00023 #include <string>
00024 
00025 
00026 
00027 #define PAGE_STACK_LEN 100 // Must be larger than the physical available number
00028                            // of pages.
00029 
00030 #include <Hw/SltTime.h>                           
00031 #include <Hw/sltpagestatus.h>
00032 
00033 #include <Hw/eventloop.h>
00034 #include <FEdata/tsevent.h>
00035 
00036 
00037 class keyboard;
00038 class Subrack;
00039 class sharedMemory;
00040 class SimpleSocket;
00041 
00045 class FEEventLoop : public EventLoop {
00046 public: 
00047   FEEventLoop(Subrack *s, unsigned short port = 0);
00048   ~FEEventLoop();
00049 
00051   int getEvent(FILE *fout);
00052 
00054   int getEventData(FILE *fout);
00055 
00056 #ifdef USE_MYSQL
00057 
00058   void storeEvent();
00059 #endif
00060  
00061 private:
00063   Subrack *s;
00064 
00065   // Event data ?!
00066   TsEvent ev;
00067         
00068 };
00069 
00070 #endif