Expression Calculator

Expression Calculator — Class used to perform C expression calculations.

Synopsis


#include <prolinga/Calc.hpp>

class PlCalc
{
        public:
                PlCalc();
                ~PlCalc();
                char*       getCalc          (char *expression);
                ...
};
typedef PlCalc *PlCalcPtr;

  

Description

This class is used to calculate the result of an expression.

Details

PlCalc::getCalc ()

char*       PlCalc::getCalc                      (char *expression);

This function is the calculation expression function. A string containing a calculation expression will be processed and the result of this calculation will be returned.

expression :

the calculation expression string.

Returns :

the result of the expression.