Replies: 1 comment
-
Hi, Connecting your Qt/C++/MySQL model to the GLSP framework should doable, and you have several options depending on how tightly you want to couple your C++ application with the GLSP server. The GLSP server processes model data and transforms it into a form that the GLSP client can render. This involves:
Options for Integration1. Direct Database ConnectionIf your data is stored in a MySQL database, you can connect directly from the GLSP server:
2. Inter-Process Communication (IPC)For leveraging significant business logic in your C++ application, use IPC mechanisms like REST APIs or sockets:
3. File-Based IntegrationWrite data from your C++ application to a JSON file and have the GLSP server read this file:
Synchronization and EditingTo support editing operations, implement GLSP operation handlers that sync changes back to your source model. This could involve updating the database directly or sending changes back to the C++ application via IPC or writing into the shared file. ConclusionFor a quick proof-of-concept, directly connecting to the MySQL database from the GLSP server is a straightforward approach. If you need to leverage existing business logic in your C++ application, consider using IPC mechanisms. Refer to the GLSP Documentation for more details on hooking up your data, implementing the |
Beta Was this translation helpful? Give feedback.
-
Hello, can I get some guidance here what are reasonable options to get my Qt/C++/MySQL model connected to the GLSP framework ?
I am currently scanning the sources and following the GLSP documentation (https://eclipse.dev/glsp/documentation/sourcemodel/) to find out how to bind customs models, but for me JS/TS is completely new and so it is hard to see solutions to connect the functions properly between GLSP and C++ application. Are there concrete hints or examples known for C++ Apps ?
Do you see roadblocks for interconnecting ?
Background/JFYI: I want to evaluate an Service-Oriented-Architecture on a System-Level approach, it is just a Proof-of-Concept, so the effort for this activity needs to stay small. I thought using GLSP might be a good path to go for a modern and maintained web/cloud frontend approach, instead of extending some Qt-Widgets on my own. Continuing using 100% Qt might get some Diagram-HMI, but very limited and slow to extend. On the other side, using 100% JS/TS also for the model and probably a more JS-like database, would be very hard porting as I am new in JS/TS.
Beta Was this translation helpful? Give feedback.
All reactions