69#ifndef NUMERIC_EVALUATOR_H_
70#define NUMERIC_EVALUATOR_H_
108 void SetDefaultUnits(
EDA_UNITS aUnits );
110 void LocaleChanged();
113 void parseError(
const char* s);
115 void parseSetResult(
double);
118 inline bool IsValid()
const {
return !m_parseError; }
121 inline wxString
Result()
const {
return wxString::FromUTF8( m_token.token ); }
127 bool Process(
const wxString& aString );
130 wxString OriginalText()
const;
133 void SetVar(
const wxString& aString,
double aValue );
136 double GetVar(
const wxString& aString );
139 void RemoveVar(
const wxString& aString ) { m_varMap.erase( aString ); }
153 void newString(
const wxString& aString );
void parse(int token, numEval::TokenType value)
char m_localeDecimalSeparator
void RemoveVar(const wxString &aString)
std::map< wxString, double > m_varMap