next version

This commit is contained in:
2024-06-25 20:47:26 +02:00
parent af2f9b12f1
commit 34f4d6cdba
7 changed files with 0 additions and 96 deletions

View File

@@ -1,7 +0,0 @@
/CMakeDirectoryInformation.cmake
/CMakeOutput.log
/Makefile.cmake
/Makefile2
/TargetDirectories.txt
/cmake.check_cache
/progress.marks

View File

@@ -1,5 +0,0 @@
/CMakeCCompiler.cmake
/CMakeCXXCompiler.cmake
/CMakeDetermineCompilerABI_C.bin
/CMakeDetermineCompilerABI_CXX.bin
/CMakeSystem.cmake

View File

@@ -1,2 +0,0 @@
/CMakeCCompilerId.c
/a.out

View File

@@ -1,2 +0,0 @@
/CMakeCXXCompilerId.cpp
/a.out

View File

@@ -1,11 +0,0 @@
/DependInfo.cmake
/build.make
/cmake_clean.cmake
/compiler_depend.make
/compiler_depend.ts
/depend.make
/flags.make
/link.txt
/progress.make
/rt_service.cpp.o
/rt_service.cpp.o.d

View File

@@ -1,69 +0,0 @@
#include <boost/python.hpp>
#include <boost/python/list.hpp>
#include <boost/python/extract.hpp>
#include <string>
//#include <sstream>
//#include <vector>
struct RTService
{
// private:
// /* data */
// public:
// RT_Service(/* args */) {}
// ~RT_Service() {}
bool createMonitoring(std::string id) {
//TODO ML: add this to the M4Core
return true;
}
bool deleteMonitoring(std::string id) {
//TODO ML: add this to the M4Core
return true;
}
std::string getMonitoringState(std::string id) {
//TODO ask the M4Core for the Monitpring Status
return "Start";
}
boost::python::list getMonitoringStates() {
//TODO ask the M4Core for the Monitpring Status
boost::python::list list;
return list;
}
bool setMonitoringStatus(std::string id, std::string status) {
//set the Status
return true;
}
};
using namespace boost::python;
BOOST_PYTHON_MODULE(rt_service)
{
class_<RTService>("RT_Service")
.def("createMonitoring", &RTService::createMonitoring)
.def("getMonitoringStatus", &RTService::getMonitoringState)
.def("getAllMonitoringStat", &RTService::getMonitoringStates)
.def("setMonitoringStatus", &RTService::setMonitoringStatus)
;
};
//examples
// long l = len(msgs);
// std::stringstream ss;
// for (long i = 0; i<l; ++i) {
// if (i>0) ss << ", ";
// std::string s = boost::python::extract<std::string>(msgs[i]);
// ss << s;
// }
// mMsg = ss.str();

Binary file not shown.