sfreundel@gmx.de il y a 7 mois
Parent
commit
ccc9d180a3
15 fichiers modifiés avec 16 ajouts et 10 suppressions
  1. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/CopilotIndices/17.13.444.19527/CodeChunks.db
  2. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/CopilotIndices/17.13.444.19527/SemanticSymbols.db
  3. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/FileContentIndex/e51b6591-474d-47ce-88fb-c9e0cf33b7ad.vsidx
  4. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/.suo
  5. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/Browse.VC.db
  6. 3 4
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/DocumentLayout.backup.json
  7. 3 4
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/DocumentLayout.json
  8. BIN
      chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/ipch/AutoPCH/e0ad0a4baa56806a/CEVENTDISPATCHER.ipch
  9. 10 2
      chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/cEventDispatcher.cpp
  10. BIN
      chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/cEventDispatcher.obj
  11. BIN
      chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.ilk
  12. BIN
      chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/vc143.idb
  13. BIN
      chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/vc143.pdb
  14. BIN
      chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.exe
  15. BIN
      chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.pdb

BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/CopilotIndices/17.13.444.19527/CodeChunks.db


BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/CopilotIndices/17.13.444.19527/SemanticSymbols.db


BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/FileContentIndex/e51b6591-474d-47ce-88fb-c9e0cf33b7ad.vsidx


BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/.suo


BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/Browse.VC.db


+ 3 - 4
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/DocumentLayout.backup.json

@@ -28,10 +28,9 @@
               "RelativeDocumentMoniker": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
               "ToolTip": "C:\\Users\\sfreunde\\source\\repos\\chatGPT - EventDispatcher C\u002B\u002B14\\chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
               "RelativeToolTip": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
-              "ViewState": "AgIAAKkAAAAAAAAAAAAYwMMAAAAAAAAAAAAAAA==",
+              "ViewState": "AgIAAFkBAAAAAAAAAAAowJUBAAAAAAAAAAAAAA==",
               "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
-              "WhenOpened": "2025-05-14T15:31:33.463Z",
-              "EditorCaption": ""
+              "WhenOpened": "2025-05-14T15:31:33.463Z"
             },
             {
               "$type": "Document",
@@ -41,7 +40,7 @@
               "RelativeDocumentMoniker": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
               "ToolTip": "C:\\Users\\sfreunde\\source\\repos\\chatGPT - EventDispatcher C\u002B\u002B14\\chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
               "RelativeToolTip": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
-              "ViewState": "AgIAAHYBAAAAAAAAAAAowJcBAAAgAAAAAAAAAA==",
+              "ViewState": "AgIAAHwBAAAAAAAAAAAowKcBAAABAAAAAAAAAA==",
               "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
               "WhenOpened": "2025-05-14T15:32:30.797Z",
               "EditorCaption": ""

+ 3 - 4
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/DocumentLayout.json

@@ -28,10 +28,9 @@
               "RelativeDocumentMoniker": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
               "ToolTip": "C:\\Users\\sfreunde\\source\\repos\\chatGPT - EventDispatcher C\u002B\u002B14\\chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
               "RelativeToolTip": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.h",
-              "ViewState": "AgIAAKkAAAAAAAAAAAAYwMMAAAAAAAAAAAAAAA==",
+              "ViewState": "AgIAAFkBAAAAAAAAAAAowJUBAAAAAAAAAAAAAA==",
               "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
-              "WhenOpened": "2025-05-14T15:31:33.463Z",
-              "EditorCaption": ""
+              "WhenOpened": "2025-05-14T15:31:33.463Z"
             },
             {
               "$type": "Document",
@@ -41,7 +40,7 @@
               "RelativeDocumentMoniker": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
               "ToolTip": "C:\\Users\\sfreunde\\source\\repos\\chatGPT - EventDispatcher C\u002B\u002B14\\chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
               "RelativeToolTip": "chatGPT - EventDispatcher C\u002B\u002B14\\cEventDispatcher.cpp",
-              "ViewState": "AgIAAPUAAAAAAAAAAAAowBYBAAAyAAAAAAAAAA==",
+              "ViewState": "AgIAAI0BAAAAAAAAAAAAAKMBAAAAAAAAAAAAAA==",
               "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
               "WhenOpened": "2025-05-14T15:32:30.797Z",
               "EditorCaption": ""

BIN
chatGPT - EventDispatcher C++14/.vs/chatGPT - EventDispatcher C++14/v17/ipch/AutoPCH/e0ad0a4baa56806a/CEVENTDISPATCHER.ipch


+ 10 - 2
chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/cEventDispatcher.cpp

@@ -403,9 +403,17 @@ int main()
         return result;
         });
 
-    auto id5_5_result = dispatcher.emit<float>(EventTypeDisp::Hover, (float) 7.0, (float) 8.0);
+    std::cout << "-------------------------  float foo(short int, short int)  -------------------------" << std::endl;
+    std::cout << ">> addHandler(EventTypeDisp::Hover, [](short int x, short int y) -> float { return y / x; }); - Lambda" << std::endl;
+    auto id5_6 = dispatcher.addHandler(EventTypeDisp::Hover, [](short int x, short int y) -> short int {
+        short int result = y + x;
+        std::cout << "Lambda Function: " << result << std::endl;
+        return result;
+        });
+
+    auto id5_6_result = dispatcher.emit<short int>(EventTypeDisp::Hover, (short int) 7, (short int) 8);
     std::cout << "Hover results: ";
-    for (float b : id5_5_result)
+    for (short int b : id5_6_result)
         std::cout << b << " ";
     std::cout << "\n";
 

BIN
chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/cEventDispatcher.obj


BIN
chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.ilk


BIN
chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/vc143.idb


BIN
chatGPT - EventDispatcher C++14/chatGPT - EventDispatcher C++14/x64/Debug/vc143.pdb


BIN
chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.exe


BIN
chatGPT - EventDispatcher C++14/x64/Debug/chatGPT - EventDispatcher C++14.pdb