From 51856620d62fd517aa3cbac62286ffbd20d98450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Boull=C3=A9?= Date: Fri, 24 Nov 2023 15:42:10 +0100 Subject: [PATCH] WIP step 2 Nouvelle classe technique DataTime - classe interne, ancetre commun de toutes les classe Date, Time, Timestamp, TimestampTZ - defini une union permetant des manipulation simple de tout ou partie des champs - longint, compatible avec KWValue - acces a la sous-partie Data, Timezone, Time - acces a tous les champs elementaires --- src/Learning/KWData/CMakeLists.txt | 1 + src/Learning/KWData/KWTime.h | 1 + src/Learning/MODL/MODL.cpp | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Learning/KWData/CMakeLists.txt b/src/Learning/KWData/CMakeLists.txt index 5b0d2d870..b72a43da8 100644 --- a/src/Learning/KWData/CMakeLists.txt +++ b/src/Learning/KWData/CMakeLists.txt @@ -61,6 +61,7 @@ add_library( KWSymbol.cpp KWTextService.cpp KWTextTokenizer.cpp + KWDateTime.cpp KWTime.cpp KWTimestamp.cpp KWTimestampTZ.cpp diff --git a/src/Learning/KWData/KWTime.h b/src/Learning/KWData/KWTime.h index a227c5356..b3f2b9d71 100644 --- a/src/Learning/KWData/KWTime.h +++ b/src/Learning/KWData/KWTime.h @@ -8,6 +8,7 @@ class Time; class KWTimeFormat; #include "Object.h" +#include "KWDateTime.h" #include "Vector.h" //////////////////////////////////////////////////////////////////////////////////// diff --git a/src/Learning/MODL/MODL.cpp b/src/Learning/MODL/MODL.cpp index 2e8c58b25..6e62c46cb 100644 --- a/src/Learning/MODL/MODL.cpp +++ b/src/Learning/MODL/MODL.cpp @@ -30,16 +30,17 @@ int main(int argc, char** argv) MDKhiopsLearningProject learningProject; //DDD + DateTime::Test(); /*DDD cout << "TEST Time\n"; Time::Test(); cout << "TEST Date\n"; Date::Test(); - */ cout << "TEST Timestamp\n"; Timestamp::Test(); cout << "TEST TimestampTZ\n"; TimestampTZ::Test(); + */ return 0; // Activation de la gestion des signaux via des erreurs, pour afficher des messages d'erreur explicites