cxWidgets 1.0
Functions
helpers.h File Reference
#include <cxGrid.h>
#include <string>
#include <vector>
Include dependency graph for helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int colLetterToIndex (const std::string &pCol)
 
std::string colIndexToLetter (int pCol)
 
bool parseCellRef (const std::string &pRef, int &pRow, int &pCol)
 
bool tryParseDouble (const std::string &pStr, double &pVal)
 
bool getCellNumericValue (cx::cxGrid &pGrid, int pRow, int pCol, double &pVal)
 
bool parseRange (const std::string &pRange, int &pStartRow, int &pStartCol, int &pEndRow, int &pEndCol)
 
bool collectValues (cx::cxGrid &pGrid, const std::string &pArgs, std::vector< double > &pValues, std::string &pErrorMsg)
 
bool evaluateFormula (cx::cxGrid &pGrid, const std::string &pFormula, std::string &pResult, std::string &pErrorMsg)
 
bool saveToFile (cx::cxGrid &pGrid, const std::string &pFilePath, std::string &pErrorMsg)
 
bool loadFromFile (cx::cxGrid &pGrid, const std::string &pFilePath, std::string &pErrorMsg)
 

Function Documentation

◆ colIndexToLetter()

std::string colIndexToLetter ( int  pCol)

Referenced by collectValues().

◆ collectValues()

bool collectValues ( cx::cxGrid pGrid,
const std::string &  pArgs,
std::vector< double > &  pValues,
std::string &  pErrorMsg 
)

◆ colLetterToIndex()

int colLetterToIndex ( const std::string &  pCol)

◆ evaluateFormula()

bool evaluateFormula ( cx::cxGrid pGrid,
const std::string &  pFormula,
std::string &  pResult,
std::string &  pErrorMsg 
)

◆ getCellNumericValue()

bool getCellNumericValue ( cx::cxGrid pGrid,
int  pRow,
int  pCol,
double &  pVal 
)

◆ loadFromFile()

bool loadFromFile ( cx::cxGrid pGrid,
const std::string &  pFilePath,
std::string &  pErrorMsg 
)

◆ parseCellRef()

bool parseCellRef ( const std::string &  pRef,
int &  pRow,
int &  pCol 
)

◆ parseRange()

bool parseRange ( const std::string &  pRange,
int &  pStartRow,
int &  pStartCol,
int &  pEndRow,
int &  pEndCol 
)

◆ saveToFile()

bool saveToFile ( cx::cxGrid pGrid,
const std::string &  pFilePath,
std::string &  pErrorMsg 
)

◆ tryParseDouble()

bool tryParseDouble ( const std::string &  pStr,
double &  pVal 
)