public ArithmeticExpression MakeArithmeticSubExperssion(string op, ArithmeticExpression lhs, ArithmeticExpression rhs) { ArithemticOperator arithmeticOP = new ArithemticOperator(); SubExpressionType newArithmetic = new SubExpressionType(); if (op == "+") arithmeticOP.AddAdd(new Altova.Types.SchemaString("Addition")); else if (op == "-") arithmeticOP.AddSubtract(new Altova.Types.SchemaString("Subtract")); else if (op == "*") arithmeticOP.AddMultiply(new Altova.Types.SchemaString("Multiply")); else if (op == "/") arithmeticOP.AddDivide(new Altova.Types.SchemaString("Divide")); else if (op == "^") arithmeticOP.AddPower(new Altova.Types.SchemaString("Mod")); else if (op == "Log") arithmeticOP.AddLog(new Altova.Types.SchemaString("Log")); newArithmetic.AddLHSArithmeticExpression(lhs); newArithmetic.AddArithmeticOperator(arithmeticOP); newArithmetic.AddRHSArithmeticExpression(rhs); return MakeArithmeticExperssion(newArithmetic); }
public void ReplaceArithmeticOperatorAt(ArithemticOperator newValue, int index) { ReplaceDomElementAt("", "ArithmeticOperator", index, newValue); }
public void InsertArithmeticOperatorAt(ArithemticOperator newValue, int index) { InsertDomElementAt("", "ArithmeticOperator", index, newValue); }
public void AddArithmeticOperator(ArithemticOperator newValue) { AppendDomElement("", "ArithmeticOperator", newValue); }
public LogEnumerator(ArithemticOperator par) { parent = par; nIndex = -1; }
public MultiplyEnumerator(ArithemticOperator par) { parent = par; nIndex = -1; }
public SubtractEnumerator(ArithemticOperator par) { parent = par; nIndex = -1; }