next version
This commit is contained in:
7
CMakeFiles/.gitignore
vendored
7
CMakeFiles/.gitignore
vendored
@@ -1,7 +0,0 @@
|
|||||||
/CMakeDirectoryInformation.cmake
|
|
||||||
/CMakeOutput.log
|
|
||||||
/Makefile.cmake
|
|
||||||
/Makefile2
|
|
||||||
/TargetDirectories.txt
|
|
||||||
/cmake.check_cache
|
|
||||||
/progress.marks
|
|
||||||
5
CMakeFiles/3.25.2/.gitignore
vendored
5
CMakeFiles/3.25.2/.gitignore
vendored
@@ -1,5 +0,0 @@
|
|||||||
/CMakeCCompiler.cmake
|
|
||||||
/CMakeCXXCompiler.cmake
|
|
||||||
/CMakeDetermineCompilerABI_C.bin
|
|
||||||
/CMakeDetermineCompilerABI_CXX.bin
|
|
||||||
/CMakeSystem.cmake
|
|
||||||
2
CMakeFiles/3.25.2/CompilerIdC/.gitignore
vendored
2
CMakeFiles/3.25.2/CompilerIdC/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
/CMakeCCompilerId.c
|
|
||||||
/a.out
|
|
||||||
2
CMakeFiles/3.25.2/CompilerIdCXX/.gitignore
vendored
2
CMakeFiles/3.25.2/CompilerIdCXX/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
/CMakeCXXCompilerId.cpp
|
|
||||||
/a.out
|
|
||||||
11
CMakeFiles/rt_service.dir/.gitignore
vendored
11
CMakeFiles/rt_service.dir/.gitignore
vendored
@@ -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
|
|
||||||
@@ -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();
|
|
||||||
BIN
rt_service.so
BIN
rt_service.so
Binary file not shown.
Reference in New Issue
Block a user