ScottishCovidResponse / SCRCIssueTracking

Central issue tracking repository for all repos in the consortium
6 stars 0 forks source link

Feasibility study for possible C++ standalone implementation #774

Closed kzscisoft closed 3 years ago

kzscisoft commented 3 years ago

Determine whether moving to a standalone C++ API is feasible time wise and based on availability of easy to use HTTP connection libraries. Related to #768.

kzscisoft commented 3 years ago

Updates are here: https://github.com/kzscisoft/SCRC-Cpp-API

kzscisoft commented 3 years ago

Just to restate what I said during the meeting:

The core aspect of connecting to the API and sending requests and parsing returned JSON is possible using the chosen JSONCPP and libcurl libraries. Issues arise when trying to mirror the same object structure as the Python as libraries do not exist so readily for C++ as modules do for Python. You find yourself going sideways more than forwards with having to mirror methods in the imported Python modules themselves as well as the API.

I shall therefore start considering a unique way of accessing the API, but with the help of some core unit tests across all the implementations, ensure that it still achieves what it needs to.

bobturneruk commented 3 years ago

C++ will be implemented standalone.