3 $Date: 2007/10/24 08:04:07 $
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
29 $Date: 2007/10/24 08:04:07 $
33 #ifndef common_settingsh_h
34 #define common_settingsh_h 1
36 #include <sys/types.h>
38 //#include <dotconfpp.h>
41 #include "base_settings.h"
43 //-----------------------------------------------------------------------------
48 virtual ~COMMON_SETTINGS();
50 virtual int ReadSettings() = 0;
52 virtual std::string GetStrError() const;
56 virtual int ParseInt(const std::string & value, int * val);
57 virtual int ParseIntInRange(const std::string & value, int min, int max, int * val);
59 virtual int ParseDouble(const std::string & value, double * val);
60 virtual int ParseDoubleInRange(const std::string & value, double min, double max, double * val);
62 virtual int ParseYesNo(const std::string & value, bool * val);
64 mutable std::string strError;
66 //-----------------------------------------------------------------------------