mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 06:40:37 +01:00
32 lines
748 B
C++
32 lines
748 B
C++
#ifndef CALCULATION_CALCULATION_H
|
|
#define CALCULATION_CALCULATION_H
|
|
|
|
#include <poincare.h>
|
|
|
|
namespace Calculation {
|
|
|
|
class Calculation {
|
|
public:
|
|
Calculation();
|
|
~Calculation(); // Delete expression and layout, if needed
|
|
Calculation & operator= (const Calculation & other);
|
|
const char * text();
|
|
Expression * input();
|
|
ExpressionLayout * inputLayout();
|
|
Expression * output();
|
|
ExpressionLayout * outputLayout();
|
|
void setContent(const char * c, Context * context);
|
|
bool isEmpty();
|
|
constexpr static int k_maximalExpressionTextLength = 255;
|
|
private:
|
|
char m_text[k_maximalExpressionTextLength];
|
|
Expression * m_input;
|
|
ExpressionLayout * m_inputLayout;
|
|
Expression * m_output;
|
|
ExpressionLayout * m_outputLayout;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|