67#ifndef NUMERIC_EVALUATOR_H_
68#define NUMERIC_EVALUATOR_H_
106 void SetDefaultUnits(
EDA_UNITS aUnits );
108 void LocaleChanged();
111 void parseError(
const char* s);
113 void parseSetResult(
double);
116 inline bool IsValid()
const {
return !m_parseError; }
119 inline wxString
Result()
const {
return wxString::FromUTF8( m_token.token ); }
125 bool Process(
const wxString& aString );
128 wxString OriginalText()
const;
131 void SetVar(
const wxString& aString,
double aValue );
134 double GetVar(
const wxString& aString );
137 void RemoveVar(
const wxString& aString ) { m_varMap.erase( aString ); }
151 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