fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 subrackbase.h - description 00003 ------------------- 00004 begin : Mo Jul 11 2005 00005 copyright : (C) 2005 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 SUBRACKBASE_H 00019 #define SUBRACKBASE_H 00020 00021 #include <Hw/subrackboardbase.h> 00022 00023 // --- forward declaration(s) 00024 00025 class akInifile; 00026 00039 class SubrackBase { 00040 public: 00041 SubrackBase(const char *inifile="FE.ini",int mode=0); 00042 virtual ~SubrackBase(); 00043 00049 const char *getVersion(); 00050 00060 int checkVersions(FILE *fout, const char *inifile="FE.ini"); 00061 00062 float getRequiredVersion(akInifile *ini, const char *module, const char *entry="Version"); 00063 00064 int compareVersion(FILE *fout, char *module, float version, float req_version); 00065 00068 unsigned long checkSlot(); 00069 00072 bool checkSlot(int slot); 00073 00078 bool isPresent(int slot); 00079 00080 unsigned long isPresent(); 00081 00082 SubrackBoardBase * board[21]; 00083 00084 protected: 00085 00086 unsigned long slotList; 00087 00088 bool initPbus; 00089 }; 00090 00091 #endif