From 5246b56958d448051fef22fc98cc5603359a46f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 26 May 2015 12:50:49 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@18 a8b55f48-bf90-11e4-a774-851b48703e85 --- kx_tools/kx_coeffs.cpp | 6 ++++++ kx_tools/kx_coeffs.h | 2 ++ 2 files changed, 8 insertions(+) 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)