00001 ///////////////////////////////////////////////////////////////////////////// 00002 /*! \file CfgParse.h 00003 * \brief The configuration parser will read the configuration file and 00004 * break it up into groups of tokens for handling by specific modules. 00005 * \author $Author: jayhawk_hokie $ 00006 * \version $Revision: 1.6 $ 00007 * \date $Date: 2006/07/05 20:59:36 $ 00008 *///////////////////////////////////////////////////////////////////////////// 00009 /* 00010 */ 00011 00012 #ifndef __SSSL_CFGPARSE_H__ 00013 #define __SSSL_CFGPARSE_H__ 00014 #include "Misc.h" 00015 #include "DeviceNames.h" 00016 00017 struct cfgBody { 00018 char *devTy; // Device type string (case preserved) 00019 wdev_t devTyNum; // Device type index number ((enum) see DeviceNames.h) 00020 char *devNm; // Device name 00021 char **keys; // Array of keys (terminated by empty word) 00022 char ***vals; // 2-D Array of vals. Same number of rows as 00023 // keys, each row terminated by empty word (""). 00024 }; 00025 00026 class CfgParse { 00027 private: 00028 cfgBody *data; 00029 public: 00030 CfgParse() {}; 00031 ~CfgParse() {}; 00032 cfgBody *go(char *fn); 00033 }; 00034 00035 #endif 00036 00037 // Do not change the comments below - they will be added automatically by CVS 00038 /***************************************************************************** 00039 * $Log: CfgParse.h,v $ 00040 * Revision 1.6 2006/07/05 20:59:36 jayhawk_hokie 00041 * *** empty log message *** 00042 * 00043 * 00044 * 00045 ******************************************************************************/ 00046