|
cxWidgets 1.0
|
#include "helpers.h"#include <string>#include <vector>#include <map>#include <sstream>#include <fstream>#include <algorithm>#include <cctype>#include <regex>#include <memory>#include <set>#include <ctime>#include <cmath>
Functions | |
| int | colLetterToIndex (const string &pCol) |
| string | colIndexToLetter (int pCol) |
| bool | parseCellRef (const string &pRef, int &pRow, int &pCol) |
| bool | tryParseDouble (const string &pStr, double &pVal) |
| bool | getCellNumericValue (cxGrid &pGrid, int pRow, int pCol, double &pVal) |
| bool | parseRange (const string &pRange, int &pStartRow, int &pStartCol, int &pEndRow, int &pEndCol) |
| bool | collectValues (cxGrid &pGrid, const string &pArgs, vector< double > &pValues, string &pErrorMsg) |
| bool | evaluateFormula (cxGrid &pGrid, const string &pFormula, string &pResult, string &pErrorMsg) |
| bool | saveToFile (cxGrid &pGrid, const string &pFilePath, string &pErrorMsg) |
| bool | loadFromFile (cxGrid &pGrid, const string &pFilePath, string &pErrorMsg) |
| string colIndexToLetter | ( | int | pCol | ) |
Referenced by collectValues().
| bool collectValues | ( | cxGrid & | pGrid, |
| const string & | pArgs, | ||
| vector< double > & | pValues, | ||
| string & | pErrorMsg | ||
| ) |
References colIndexToLetter(), cx::cxGrid::getCellValue(), parseCellRef(), parseRange(), and tryParseDouble().
Referenced by evaluateFormula().
| int colLetterToIndex | ( | const string & | pCol | ) |
Referenced by parseCellRef().
| bool evaluateFormula | ( | cxGrid & | pGrid, |
| const string & | pFormula, | ||
| string & | pResult, | ||
| string & | pErrorMsg | ||
| ) |
References collectValues(), getCellNumericValue(), cx::cxGrid::getCellValue(), parseCellRef(), and tryParseDouble().
| bool getCellNumericValue | ( | cxGrid & | pGrid, |
| int | pRow, | ||
| int | pCol, | ||
| double & | pVal | ||
| ) |
References cx::cxGrid::getCellValue(), cx::cxGrid::getNumCols(), cx::cxGrid::getNumRows(), and tryParseDouble().
Referenced by evaluateFormula().
| bool loadFromFile | ( | cxGrid & | pGrid, |
| const string & | pFilePath, | ||
| string & | pErrorMsg | ||
| ) |
| bool parseCellRef | ( | const string & | pRef, |
| int & | pRow, | ||
| int & | pCol | ||
| ) |
References colLetterToIndex().
Referenced by collectValues(), evaluateFormula(), and parseRange().
| bool parseRange | ( | const string & | pRange, |
| int & | pStartRow, | ||
| int & | pStartCol, | ||
| int & | pEndRow, | ||
| int & | pEndCol | ||
| ) |
References parseCellRef().
Referenced by collectValues().
| bool saveToFile | ( | cxGrid & | pGrid, |
| const string & | pFilePath, | ||
| string & | pErrorMsg | ||
| ) |
References cx::cxGrid::getCellValue(), cx::cxGrid::getNumCols(), and cx::cxGrid::getNumRows().
| bool tryParseDouble | ( | const string & | pStr, |
| double & | pVal | ||
| ) |
Referenced by collectValues(), evaluateFormula(), and getCellNumericValue().