fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/calib/calibcontrol.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     calibControl.h  -  description
00003 
00004     begin                : Tue Sep 05 2001
00005     copyright            : (C) 2001 by A Kopmann
00006     email                : kopmann@hpe.fzk.de
00007     status               :
00008     test                 :
00009     history              :
00010  ***************************************************************************/
00011 
00012 
00013 #ifndef CALIBCONTROL_H
00014 #define CALIBCONTROL_H
00015 
00016 #include <cstdio>
00017 #include <string>
00018 
00019 class CalibData;
00020 
00040 class CalibControl
00041 {
00042 public:
00043 
00044 
00048         CalibControl(const char *hostIp = "calib1", int portNo = 12345);
00049         virtual ~CalibControl();
00050 
00055         void init(char *inifile = "FE.ini", FILE *fdebug = 0);
00056 
00057 
00061   void setLogFile(FILE *fout);
00062 
00063 
00075   int getStatus(int *end_flag, int *rpbp_bit);
00076         int getStatus(FILE *fout,int *end_flag, int *rpbp_bit);
00077 
00078   char *getMessage(int *end_flag, int *rpbp_bit);
00079 
00080         int powerOn();
00081 
00082         int powerOff();
00083 
00084         int shutdown();
00085 
00086         int stop();
00087 
00092         int execute(char *command);
00093 
00113         int getData(FILE *fout, CalibData *data);
00114 
00121   int getData(std::string *data);
00122 
00123 private:
00124 
00126         std::string host;
00127 
00129   int port;
00130 
00132   FILE *fout;
00133 
00134 };
00135 
00136 #endif