00001 /********************************************************************** 00002 locale.h - Handle internal numeric locale issues -- parse data in "C" 00003 00004 Copyright (C) 2008 by Geoffrey R. Hutchison 00005 00006 This file is part of the Open Babel project. 00007 For more information, see <http://openbabel.org/> 00008 00009 This program is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation version 2 of the License. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 ***********************************************************************/ 00018 00019 #ifndef OB_LOCALE_H 00020 #define OB_LOCALE_H 00021 00022 #include <locale> 00023 #include <openbabel/babelconfig.h> 00024 00025 #ifndef OBERROR 00026 #define OBERROR 00027 #endif 00028 00029 namespace OpenBabel 00030 { 00031 class OBLocalePrivate; 00032 00033 // more detailed descriptions and documentation in locale.cpp 00035 class OBERROR OBLocale { 00036 public: 00037 00038 OBLocale(); 00039 ~OBLocale(); 00040 00041 void SetLocale(); 00042 void RestoreLocale(); 00043 00044 protected: 00045 OBLocalePrivate* d; 00046 }; 00047 00048 //global definitions 00050 OBERROR extern OBLocale obLocale; 00051 00052 } // namespace OpenBabel 00053 #endif // OB_LOCALE_H 00054
This file is part of the documentation for Open Babel, version 2.3.