From 92bbd9e862da0e34582a53c908901af00bb786d8 Mon Sep 17 00:00:00 2001 From: mtollari Date: Fri, 9 Feb 2018 15:38:29 +0000 Subject: [PATCH] Patch level : 12.0 no-patch Files correlati : Commento : Aggiunte funzioni get_real e get_date git-svn-id: svn://10.65.10.50/branches/R_10_00@24369 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/include/tsdb.cpp | 13 ++++++++++++- src/include/tsdb.h | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/include/tsdb.cpp b/src/include/tsdb.cpp index 800078bde..aeadac8ac 100644 --- a/src/include/tsdb.cpp +++ b/src/include/tsdb.cpp @@ -4,4 +4,15 @@ /****************************************************************************** * SSimpleQuery * * Classe per esecuzioni di query temporanee (wrapper semplice per SACommand) * - ******************************************************************************/ \ No newline at end of file + ******************************************************************************/ + +TDate SSimpleQuery::sqGetDate(const char * field) +{ +#ifdef DBG + warning_box("Guarda qua! Non so se funziona! (sqGetDate)"); +#endif // DBG + + TString val = sqGet(field); + val.cut(val.find('T')); + return val; +} \ No newline at end of file diff --git a/src/include/tsdb.h b/src/include/tsdb.h index 922529e29..929a51996 100644 --- a/src/include/tsdb.h +++ b/src/include/tsdb.h @@ -161,7 +161,7 @@ public: /**< Ritorna il valore nel campo (field) in formato (TDate) */ TDate sqGetDate(const char* field); /**< Ritorna il valore nel campo (field) in formato (real) */ - real sqGetReal(const char* field); + real sqGetReal(const char* field) { return sqGet(field); } /**< Ritorna il valore nel campo (field) in formato (SADateTime), Campo non gestisce le ore */ //SADateTime sqGetDateTime(const char* field) { get_short(field); } /**< Ritorna il valore nel campo (field) passato come (const char *) in formato (const char *) */