ParseExp.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00011 /*  This program is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public
00013  *  License as published by the Free Software Foundation; either
00014  *  version 2 of the License, or (at your option) any later version.
00015  *
00016  *  This software is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *  General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public
00022  *  License along with this software; if not, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #ifndef PARSEEXP_H
00028 #define PARSEEXP_H
00029 #include <map>
00030 #include <string>
00031 
00032 namespace Parser
00033 {
00034 typedef std::map<const char*, double> ConstantMap;
00035 
00036 bool ParseExpression(const std::string expression, double& result);
00037 bool ParseExpression(const std::string expression, double& result, const ConstantMap constants);
00038 
00039 };
00040 
00041 #endif

Generated on Fri Aug 22 01:25:48 2014 for Hugintrunk by  doxygen 1.3.9.1