2017-10-09 02:25:02 +08:00
|
|
|
/*
|
|
|
|
* _DataDriverFactory.cpp
|
|
|
|
*
|
|
|
|
* Created on: 2017年10月7日
|
|
|
|
* Author: fasiondog
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
#include <hikyuu/data_driver/DataDriverFactory.h>
|
|
|
|
|
|
|
|
using namespace hku;
|
|
|
|
using namespace boost::python;
|
|
|
|
|
|
|
|
void export_DataDriverFactory() {
|
|
|
|
|
|
|
|
class_<DataDriverFactory>("DataDriverFactory", no_init)
|
|
|
|
.def("getBaseInfoDriver", &DataDriverFactory::getBaseInfoDriver)
|
|
|
|
.def("regBaseInfoDriver", &DataDriverFactory::regBaseInfoDriver)
|
|
|
|
.def("removeBaseInfoDriver", &DataDriverFactory::removeBaseInfoDriver)
|
2017-10-14 03:08:49 +08:00
|
|
|
.def("getKDataDriver", &DataDriverFactory::getKDataDriver)
|
|
|
|
.def("regKDataDriver", &DataDriverFactory::regKDataDriver)
|
|
|
|
.def("removeKDataDriver", &DataDriverFactory::removeKDataDriver)
|
2017-10-09 02:25:02 +08:00
|
|
|
.def("getBlockDriver", &DataDriverFactory::getBlockDriver)
|
|
|
|
.def("regBlockDriver", &DataDriverFactory::regBlockDriver)
|
|
|
|
.def("removeBlockDriver", &DataDriverFactory::removeBlockDriver)
|
|
|
|
.staticmethod("getBaseInfoDriver")
|
|
|
|
.staticmethod("regBaseInfoDriver")
|
|
|
|
.staticmethod("removeBaseInfoDriver")
|
2017-10-14 03:08:49 +08:00
|
|
|
.staticmethod("getKDataDriver")
|
2017-10-09 02:25:02 +08:00
|
|
|
.staticmethod("getBlockDriver")
|
|
|
|
.staticmethod("regBlockDriver")
|
|
|
|
.staticmethod("removeBlockDriver")
|
|
|
|
;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|