This repository represents the frontend-library of the project. It is used to integrate the plattform into client applications.
It uses CMake.
This library depends on backcurl, and the meta-core library.
-
Clone
git clone https://github.com/moddx/meta-frontend
-
Fetch submodules
git submodules update --init --recursive
-
Add to your CMakeLists.txt
add_subdirectory(my/libs/meta-frontend/) target_link_libraries(mytarget <my-dependencies..> meta-frontend)
-
Implement a custom ComputeUnit und ComputeData class
-
Distribute vectors of ComputeData's over the Distribtor
# Example DataSource data(listOfMyComputeData); ComputeUnit *cu = new MyComputeUnit(); Distributor d = new Distributor(cu, '192.168.2.100:4300', 'a4f202ec79d9be281e5e44e15ec75fa8'); d.distribute(&data); // blocks vector<MyComputeData*> results; data.getTypedResults<MyComputeData>(results); ..