diff --git a/kx_tools/kx_coeffs.cpp b/kx_tools/kx_coeffs.cpp index c6e984e..040e4b4 100644 --- a/kx_tools/kx_coeffs.cpp +++ b/kx_tools/kx_coeffs.cpp @@ -71,6 +71,12 @@ void KX_Coefficients::writeCoeffs() { } +void KX_Coefficients::setKFile(const PIString & f) { + fname = f; + readCoeffs(); +} + + void KX_Coefficients::sendCoeffs() { stop(); int curcnt, pcnt = (k_content.size_s() - 1) / __BYTES_IN_PACKET + 1; diff --git a/kx_tools/kx_coeffs.h b/kx_tools/kx_coeffs.h index 90cb81b..06b0ee1 100644 --- a/kx_tools/kx_coeffs.h +++ b/kx_tools/kx_coeffs.h @@ -67,6 +67,8 @@ public: const PIString & formula(int index) const {return formulas[index];} void setFormula(int index, const PIString & f) {formulas[index] = f;} + void setKFile(const PIString & f); + EVENT(sendSucceed) EVENT(sendFailed) EVENT(receiveSucceed)