Hopsan
NumHopHelper Class Reference

Public Member Functions

void setSystem (ComponentSystem *pSystem)
 
void setComponent (Component *pComponent)
 
void registerDataPtr (const HString &name, double *pData)
 
bool evalNumHopScript (const HString &script, double &rValue, bool doPrintOutput, HString &rOutput)
 
bool interpretNumHopScript (const HString &script, bool doPrintOutput, HString &rOutput)
 
bool eval (double &rValue, bool doPrintOutput, HString &rOutput)
 
HVector< HStringextractVariableNames (const HString &expression) const
 

Static Public Member Functions

static HVector< HStringextractNamedValues (const HString &expression)
 
static HString replaceNamedValue (const HString &expression, const HString &oldName, const HString &newName)