#ifndef CALCULATOR #define CALCULATOR #include #include #include #include #include #include "node.h" #include "VariableMap.h" #include "arithmetica.h" /** *The Calculator class is called by the user when they want to turn a *string of input into a completed calculation. The calculator class *relies mainly on the funcionality of NodeCreator. * * * *CONSTRUCTOR *Calculator(Arithmetica *processorType) * *FUNCTIONS * void performCalculations() * calls other classes to evaluate the string and return a value * *PRIVATE VARIABLES * * Arithmetica * myProcessorType * Used to decide which fucntionality to use * * *Written by Jessica Smith */ class Calculator{ public: Calculator(Arithmetica * processortype);//Constructor void performCalculations();//Calls steps needed to perform //calculations private: Arithmetica * myProcessorType; }; #endif CALCULATOR