Tanl Linguistic Pipeline |
00001 /* 00002 ** IXE 00003 ** conf/conf_bool.h 00004 ** ---------------------------------------------------------------------- 00005 ** Copyright (c) 2000 Ideare SpA. All rights reserved. 00006 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it). 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of IXE. 00010 ** 00011 ** IXE is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** IXE is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef conf_bool_H 00026 #define conf_bool_H 00027 00028 // Settings 00029 #include "platform.h" 00030 00031 // standard 00032 #include <string> 00033 00034 // local 00035 #include "conf/conf.h" 00036 00037 namespace IXE { 00038 00047 template <> class conf<bool> : public VarDefault<bool> 00048 { 00049 public: 00050 conf(char const* name, bool default_value) : 00051 VarDefault<bool>(name, default_value) 00052 { } 00053 00054 conf<bool>& operator =(bool new_value) { 00055 value = new_value; 00056 return *this; 00057 } 00058 00059 protected: 00060 virtual void parseValue(char const*& line); 00061 }; 00062 00063 } // namespace IXE 00064 00065 #endif /* conf_bool_H */