30 Star 78 Fork 79

liuyinghua/FastTrader

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
pyexports.cpp 909 Bytes
Copy Edit Raw Blame History
liuyinghua authored 2024-10-25 21:43 +08:00 . 1增加各种类型的智能指针定义
#include <boost/python.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "DataStoreFace.h"
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(PrepareDataByInstrument, PrepareData, 1, 5)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(PrepareDataByID, PrepareData, 1,5)
BOOST_PYTHON_MODULE(DataStoreLib)
{
using namespace boost::python;
class_<DataStoreFace, boost::shared_ptr<DataStoreFace>, boost::noncopyable >("DataStoreFace", no_init)
.def("GetRegInstrument", &DataStoreFace::GetRegInstrument)
.def("PrepareData",
static_cast<int(DataStoreFace::*)(InstrumentDataSPtr , int , int , int , bool )>(&DataStoreFace::PrepareData),
PrepareDataByInstrument())
.def("PrepareData", static_cast<InstrumentDataSPtr(DataStoreFace::*)(const std::string&, int, int, int, bool)>(&DataStoreFace::PrepareData),
PrepareDataByID())
;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mongodb_client/FastTrader.git
[email protected]:mongodb_client/FastTrader.git
mongodb_client
FastTrader
FastTrader
master

Search