monitor.h

Go to the documentation of this file.
00001 /* Gxsm - Gnome X Scanning Microscopy
00002  * universal STM/AFM/SARLS/SPALEED/... controlling and
00003  * data analysis software
00004  * 
00005  * Copyright (C) 1999,2000,2001,2002,2003 Percy Zahl
00006  *
00007  * Authors: Percy Zahl <zahl@users.sf.net>
00008  * additional features: Andreas Klust <klust@users.sf.net>
00009  * WWW Home: http://gxsm.sf.net
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  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00024  */
00025 
00026 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 8 c-style: "K&R" -*- */
00027 
00028 #ifndef __MONITOR_H
00029 #define __MONITOR_H
00030 
00031 #include <fstream>
00032 
00033 #include <config.h>
00034 #include <libgnome/libgnome.h>
00035 
00036 #include <stdio.h>
00037 #include <stdlib.h>
00038 #include <math.h>
00039 #include <string.h>
00040 
00041 #define MAXMONITORFIELDS 10
00042 
00043 class Monitor{
00044 public:
00045   Monitor(gchar *name=NULL);
00046   virtual ~Monitor();
00047 
00048   virtual void run() {};
00049   virtual void stop() {};
00050 
00051   virtual void Messung(float val=0., gchar *txt=NULL);
00052   virtual void LogEvent(gchar *Action, gchar *Entry);
00053 
00054   void PutEvent(gchar *Action, gchar *Entry);
00055 
00056   gint Load(gchar *fname);
00057   gint Save(gchar *fname);
00058 
00059   gint AppLine();
00060   gint GetLine();
00061 
00062   void SetLogName(char *name);
00063 
00064   gchar *Fields[MAXMONITORFIELDS];
00065 protected:
00066   double dt;
00067   char   *logname;
00068 };
00069 
00070 #endif
00071 
00072 
00073 
00074 

Generated on Sat Apr 1 09:04:02 2006 for GXSM by  doxygen 1.4.6