fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 pbusdaemonversion.h - description 00003 00004 begin : Fri Jan 19 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 PBUSDAEMONVERSION_H 00014 #define PBUSDAEMONVERSION_H 00015 00016 #include <cstdio> 00017 #include <string> 00018 00019 #include <Pbus/pbusversion.h> 00020 00021 #ifdef PBUS_VCLASS 00022 00023 class PbusVersion; 00024 00033 class PbusDaemonVersion { 00034 public: 00035 PbusDaemonVersion(); 00036 PbusDaemonVersion(string ver, PbusVersion *p); 00037 ~PbusDaemonVersion(); 00038 00039 void display(FILE *fout); 00040 00041 int check(char *ini="FE.ini"); 00042 00043 int length(); 00044 00045 int copyTo(unsigned long *data, int n); 00046 00047 int copyFrom(unsigned long *data, int n); 00048 00049 private: 00050 00051 string version; 00052 string ipaddr; 00053 int os; 00054 00055 PbusVersion *pbus; 00056 bool del_pbus; 00057 00058 00059 }; 00060 00061 #endif 00062 00063 #endif 00064