00001 /* 00002 * Copyright: (C) 1999-2000 Bruce W. Forsberg 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * Bruce Forsberg forsberg@adnc.com 00019 * 00020 */ 00021 00022 #ifndef _AFLIBENVFILE_H_ 00023 #define _AFLIBENVFILE_H_ 00024 00044 #include <string> 00045 00046 class aflibEnvFile { 00047 00048 public: 00049 00050 aflibEnvFile( 00051 char * env_file, 00052 char * env_dir = NULL); 00053 00054 aflibEnvFile(); 00055 00056 ~aflibEnvFile(); 00057 00058 bool 00059 readValueFromFile( 00060 string& key_str, 00061 string& results); 00062 00063 void 00064 writeValueToFile( 00065 string& key_str, 00066 string& value); 00067 00068 00069 private: 00070 00071 string _env_file; 00072 00073 }; 00074 00075 00076 #endif