some ingnore files
This commit is contained in:
1
recipes-vrpmdv/recipes-base/vrpmdv-py-ext/.gitignore
vendored
Normal file
1
recipes-vrpmdv/recipes-base/vrpmdv-py-ext/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/vrpmdv-web.bb.old
|
||||||
1
recipes-vrpmdv/recipes-base/vrpmdv-web/.gitignore
vendored
Normal file
1
recipes-vrpmdv/recipes-base/vrpmdv-web/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/vrpmdv-web.bb.old
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
project( rt_service CXX )
|
||||||
|
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR armv7-a)
|
||||||
|
|
||||||
|
|
||||||
|
# -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=<SDK installation directory>/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
|
||||||
|
set(COMPILER_FLAGS " -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -m32")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILER_FLAGS}")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS}")
|
||||||
|
|
||||||
|
|
||||||
|
# Without this, any build libraries automatically have names "lib{x}.so"
|
||||||
|
set(CMAKE_SHARED_MODULE_PREFIX "")
|
||||||
|
|
||||||
|
add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
|
||||||
|
|
||||||
|
|
||||||
|
# Add a shared module - modules are intended to be imported at runtime.
|
||||||
|
# - This is where you add the source files
|
||||||
|
add_library(rt_service SHARED rt_service.cpp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3
recipes-vrpmdv/recipes-base/vrpmdv-web/files/rt_service/__save/.gitignore
vendored
Normal file
3
recipes-vrpmdv/recipes-base/vrpmdv-web/files/rt_service/__save/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/CMakeLists.txt
|
||||||
|
/CMakeLists1.txt.save
|
||||||
|
/CMakeLists1example.txt.save
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
#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();
|
||||||
Reference in New Issue
Block a user