From 799c837d8a5eeaa800504304f296451e204fc5e0 Mon Sep 17 00:00:00 2001 From: HaseenaSainul <41037131+HaseenaSainul@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:30:30 +0530 Subject: [PATCH] Examples: cleanup (#823) Co-authored-by: Pierre Wielders --- examples/CMakeLists.txt | 8 ++++---- examples/Examples.md | 13 +++++++++++++ .../Client}/CMakeLists.txt | 0 .../Client}/JSONRPCClient.cpp | 2 +- .../Client}/JSONRPCClient.vcxproj | 0 .../Client}/JSONRPCClient.vcxproj.filters | 0 .../{JSONRPCClient => JSONRPC/Client}/Module.cpp | 0 examples/{JSONRPCClient => JSONRPC/Client}/Module.h | 0 .../Plugin}/CMakeLists.txt | 0 examples/{JSONRPCPlugin => JSONRPC/Plugin}/Data.h | 0 .../Plugin}/JSONRPCPlugin.conf.in | 0 .../Plugin}/JSONRPCPlugin.cpp | 0 .../Plugin}/JSONRPCPlugin.filters | 0 .../Plugin}/JSONRPCPlugin.h | 0 .../Plugin}/JSONRPCPlugin.vcxproj | 0 .../Plugin}/JSONRPCPlugin.vcxproj.filters | 0 .../{JSONRPCPlugin => JSONRPC/Plugin}/Module.cpp | 0 examples/{JSONRPCPlugin => JSONRPC/Plugin}/Module.h | 0 .../Client}/CMakeLists.txt | 0 .../Client}/SimpleCOMRPCClient.cpp | 0 .../Client}/SimpleCOMRPCClient.vcxproj | 0 .../Client}/SimpleCOMRPCClient.vcxproj.filters | 0 .../PluginServer}/CMakeLists.txt | 0 .../PluginServer}/Module.cpp | 0 .../PluginServer}/Module.h | 0 .../PluginServer}/SimpleCOMRPCPluginServer.conf.in | 0 .../PluginServer}/SimpleCOMRPCPluginServer.cpp | 0 .../PluginServer}/SimpleCOMRPCPluginServer.filters | 0 .../PluginServer}/SimpleCOMRPCPluginServer.h | 0 .../PluginServer}/SimpleCOMRPCPluginServer.vcxproj | 0 30 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 examples/Examples.md rename examples/{JSONRPCClient => JSONRPC/Client}/CMakeLists.txt (100%) rename examples/{JSONRPCClient => JSONRPC/Client}/JSONRPCClient.cpp (99%) rename examples/{JSONRPCClient => JSONRPC/Client}/JSONRPCClient.vcxproj (100%) rename examples/{JSONRPCClient => JSONRPC/Client}/JSONRPCClient.vcxproj.filters (100%) rename examples/{JSONRPCClient => JSONRPC/Client}/Module.cpp (100%) rename examples/{JSONRPCClient => JSONRPC/Client}/Module.h (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/CMakeLists.txt (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/Data.h (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.conf.in (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.cpp (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.filters (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.h (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.vcxproj (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/JSONRPCPlugin.vcxproj.filters (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/Module.cpp (100%) rename examples/{JSONRPCPlugin => JSONRPC/Plugin}/Module.h (100%) rename examples/{SimpleCOMRPCClient => SimpleCOMRPC/Client}/CMakeLists.txt (100%) rename examples/{SimpleCOMRPCClient => SimpleCOMRPC/Client}/SimpleCOMRPCClient.cpp (100%) rename examples/{SimpleCOMRPCClient => SimpleCOMRPC/Client}/SimpleCOMRPCClient.vcxproj (100%) rename examples/{SimpleCOMRPCClient => SimpleCOMRPC/Client}/SimpleCOMRPCClient.vcxproj.filters (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/CMakeLists.txt (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/Module.cpp (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/Module.h (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/SimpleCOMRPCPluginServer.conf.in (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/SimpleCOMRPCPluginServer.cpp (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/SimpleCOMRPCPluginServer.filters (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/SimpleCOMRPCPluginServer.h (100%) rename examples/{SimpleCOMRPCPluginServer => SimpleCOMRPC/PluginServer}/SimpleCOMRPCPluginServer.vcxproj (100%) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index bf6891e4d..10480391c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -42,8 +42,8 @@ if(EXAMPLE_COMRPCCLIENT) endif() if(PLUGIN_JSONRPC) - add_subdirectory(JSONRPCPlugin) - add_subdirectory(JSONRPCClient) + add_subdirectory(JSONRPC/Plugin) + add_subdirectory(JSONRPC/Client) endif() if(PLUGIN_FILETRANSFER) @@ -84,6 +84,6 @@ if (EXAMPLE_PLUGINSMARTINTERFACETYPE_EXAMPLE) endif() if (EXAMPLE_SIMPLECOMRPC_TEST) - add_subdirectory(SimpleCOMRPCPluginServer) - add_subdirectory(SimpleCOMRPCClient) + add_subdirectory(SimpleCOMRPC/PluginServer) + add_subdirectory(SimpleCOMRPC/Client) endif() diff --git a/examples/Examples.md b/examples/Examples.md new file mode 100644 index 000000000..c62dfb3cc --- /dev/null +++ b/examples/Examples.md @@ -0,0 +1,13 @@ +# Examples + +* [COMRPCClient]: Shows how to hookup with Thunder using COMRPC +* [JSONRPC]: Shows, the communication between plugin and standalone client using JSONRPC +* [FileTransfer]: Shows, how to read a file from server and store in the given path +* [OutOfProcess]: Shows, how to implement an OutOfProcess plugins +* [StateController]: Shows, How to get state changes of a plugin +* [ConfigUpdateExample]: Shows, how to store plugin config in persistent store/path +* [IOConnector]: Shows, how to communicate with IOConnector plugin using JSONRPC as well as COMRPC +* [MessageControlUDPClient]: Shows, how to get Trace/logges from Thunder/Plugins +* [SimpleCOMRPC]: Standalone Client Server shows the communication using COMRPC +* [PluginSmartInterfaceType]: Shows the communication with a plugin using PluginSmartInterfaceType +* [DynamicLoading]: Shows, how to add interface to a running system diff --git a/examples/JSONRPCClient/CMakeLists.txt b/examples/JSONRPC/Client/CMakeLists.txt similarity index 100% rename from examples/JSONRPCClient/CMakeLists.txt rename to examples/JSONRPC/Client/CMakeLists.txt diff --git a/examples/JSONRPCClient/JSONRPCClient.cpp b/examples/JSONRPC/Client/JSONRPCClient.cpp similarity index 99% rename from examples/JSONRPCClient/JSONRPCClient.cpp rename to examples/JSONRPC/Client/JSONRPCClient.cpp index 5c83f4bc1..53b807567 100644 --- a/examples/JSONRPCClient/JSONRPCClient.cpp +++ b/examples/JSONRPC/Client/JSONRPCClient.cpp @@ -26,7 +26,7 @@ #include #include -#include "../JSONRPCPlugin/Data.h" +#include "../Plugin/Data.h" namespace Thunder { diff --git a/examples/JSONRPCClient/JSONRPCClient.vcxproj b/examples/JSONRPC/Client/JSONRPCClient.vcxproj similarity index 100% rename from examples/JSONRPCClient/JSONRPCClient.vcxproj rename to examples/JSONRPC/Client/JSONRPCClient.vcxproj diff --git a/examples/JSONRPCClient/JSONRPCClient.vcxproj.filters b/examples/JSONRPC/Client/JSONRPCClient.vcxproj.filters similarity index 100% rename from examples/JSONRPCClient/JSONRPCClient.vcxproj.filters rename to examples/JSONRPC/Client/JSONRPCClient.vcxproj.filters diff --git a/examples/JSONRPCClient/Module.cpp b/examples/JSONRPC/Client/Module.cpp similarity index 100% rename from examples/JSONRPCClient/Module.cpp rename to examples/JSONRPC/Client/Module.cpp diff --git a/examples/JSONRPCClient/Module.h b/examples/JSONRPC/Client/Module.h similarity index 100% rename from examples/JSONRPCClient/Module.h rename to examples/JSONRPC/Client/Module.h diff --git a/examples/JSONRPCPlugin/CMakeLists.txt b/examples/JSONRPC/Plugin/CMakeLists.txt similarity index 100% rename from examples/JSONRPCPlugin/CMakeLists.txt rename to examples/JSONRPC/Plugin/CMakeLists.txt diff --git a/examples/JSONRPCPlugin/Data.h b/examples/JSONRPC/Plugin/Data.h similarity index 100% rename from examples/JSONRPCPlugin/Data.h rename to examples/JSONRPC/Plugin/Data.h diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.conf.in b/examples/JSONRPC/Plugin/JSONRPCPlugin.conf.in similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.conf.in rename to examples/JSONRPC/Plugin/JSONRPCPlugin.conf.in diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.cpp b/examples/JSONRPC/Plugin/JSONRPCPlugin.cpp similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.cpp rename to examples/JSONRPC/Plugin/JSONRPCPlugin.cpp diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.filters b/examples/JSONRPC/Plugin/JSONRPCPlugin.filters similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.filters rename to examples/JSONRPC/Plugin/JSONRPCPlugin.filters diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.h b/examples/JSONRPC/Plugin/JSONRPCPlugin.h similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.h rename to examples/JSONRPC/Plugin/JSONRPCPlugin.h diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.vcxproj b/examples/JSONRPC/Plugin/JSONRPCPlugin.vcxproj similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.vcxproj rename to examples/JSONRPC/Plugin/JSONRPCPlugin.vcxproj diff --git a/examples/JSONRPCPlugin/JSONRPCPlugin.vcxproj.filters b/examples/JSONRPC/Plugin/JSONRPCPlugin.vcxproj.filters similarity index 100% rename from examples/JSONRPCPlugin/JSONRPCPlugin.vcxproj.filters rename to examples/JSONRPC/Plugin/JSONRPCPlugin.vcxproj.filters diff --git a/examples/JSONRPCPlugin/Module.cpp b/examples/JSONRPC/Plugin/Module.cpp similarity index 100% rename from examples/JSONRPCPlugin/Module.cpp rename to examples/JSONRPC/Plugin/Module.cpp diff --git a/examples/JSONRPCPlugin/Module.h b/examples/JSONRPC/Plugin/Module.h similarity index 100% rename from examples/JSONRPCPlugin/Module.h rename to examples/JSONRPC/Plugin/Module.h diff --git a/examples/SimpleCOMRPCClient/CMakeLists.txt b/examples/SimpleCOMRPC/Client/CMakeLists.txt similarity index 100% rename from examples/SimpleCOMRPCClient/CMakeLists.txt rename to examples/SimpleCOMRPC/Client/CMakeLists.txt diff --git a/examples/SimpleCOMRPCClient/SimpleCOMRPCClient.cpp b/examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.cpp similarity index 100% rename from examples/SimpleCOMRPCClient/SimpleCOMRPCClient.cpp rename to examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.cpp diff --git a/examples/SimpleCOMRPCClient/SimpleCOMRPCClient.vcxproj b/examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.vcxproj similarity index 100% rename from examples/SimpleCOMRPCClient/SimpleCOMRPCClient.vcxproj rename to examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.vcxproj diff --git a/examples/SimpleCOMRPCClient/SimpleCOMRPCClient.vcxproj.filters b/examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.vcxproj.filters similarity index 100% rename from examples/SimpleCOMRPCClient/SimpleCOMRPCClient.vcxproj.filters rename to examples/SimpleCOMRPC/Client/SimpleCOMRPCClient.vcxproj.filters diff --git a/examples/SimpleCOMRPCPluginServer/CMakeLists.txt b/examples/SimpleCOMRPC/PluginServer/CMakeLists.txt similarity index 100% rename from examples/SimpleCOMRPCPluginServer/CMakeLists.txt rename to examples/SimpleCOMRPC/PluginServer/CMakeLists.txt diff --git a/examples/SimpleCOMRPCPluginServer/Module.cpp b/examples/SimpleCOMRPC/PluginServer/Module.cpp similarity index 100% rename from examples/SimpleCOMRPCPluginServer/Module.cpp rename to examples/SimpleCOMRPC/PluginServer/Module.cpp diff --git a/examples/SimpleCOMRPCPluginServer/Module.h b/examples/SimpleCOMRPC/PluginServer/Module.h similarity index 100% rename from examples/SimpleCOMRPCPluginServer/Module.h rename to examples/SimpleCOMRPC/PluginServer/Module.h diff --git a/examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.conf.in b/examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.conf.in similarity index 100% rename from examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.conf.in rename to examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.conf.in diff --git a/examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.cpp b/examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.cpp similarity index 100% rename from examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.cpp rename to examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.cpp diff --git a/examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.filters b/examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.filters similarity index 100% rename from examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.filters rename to examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.filters diff --git a/examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.h b/examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.h similarity index 100% rename from examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.h rename to examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.h diff --git a/examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.vcxproj b/examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.vcxproj similarity index 100% rename from examples/SimpleCOMRPCPluginServer/SimpleCOMRPCPluginServer.vcxproj rename to examples/SimpleCOMRPC/PluginServer/SimpleCOMRPCPluginServer.vcxproj