mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-01 19:38:20 +08:00
update for macosx, static
This commit is contained in:
parent
afa5a0df93
commit
89559baac3
@ -147,8 +147,33 @@ public:
|
||||
|
||||
protected:
|
||||
string m_name;
|
||||
|
||||
//============================================
|
||||
// 序列化支持
|
||||
//============================================
|
||||
#if HKU_SUPPORT_SERIALIZATION
|
||||
private:
|
||||
friend class boost::serialization::access;
|
||||
template <class Archive>
|
||||
void save(Archive& ar, const unsigned int version) const {
|
||||
ar& BOOST_SERIALIZATION_NVP(m_name);
|
||||
ar& BOOST_SERIALIZATION_NVP(m_params);
|
||||
}
|
||||
|
||||
template <class Archive>
|
||||
void load(Archive& ar, const unsigned int version) {
|
||||
ar& BOOST_SERIALIZATION_NVP(m_name);
|
||||
ar& BOOST_SERIALIZATION_NVP(m_params);
|
||||
}
|
||||
|
||||
BOOST_SERIALIZATION_SPLIT_MEMBER()
|
||||
#endif /* HKU_SUPPORT_SERIALIZATION */
|
||||
};
|
||||
|
||||
#if HKU_SUPPORT_SERIALIZATION
|
||||
BOOST_SERIALIZATION_ASSUME_ABSTRACT(OrderBrokerBase)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 客户程序应使用此类型进行实际操作
|
||||
* @ingroup OrderBroker
|
||||
|
@ -737,10 +737,6 @@ private:
|
||||
#endif /* HKU_SUPPORT_SERIALIZATION */
|
||||
};
|
||||
|
||||
#if HKU_SUPPORT_SERIALIZATION
|
||||
BOOST_SERIALIZATION_ASSUME_ABSTRACT(TradeManagerBase)
|
||||
#endif
|
||||
|
||||
inline void TradeManagerBase::baseCheckParam(const string& name) const {
|
||||
if ("precision" == name) {
|
||||
int precision = getParam<int>("precision");
|
||||
|
@ -136,7 +136,6 @@ target("small-test")
|
||||
-- add files
|
||||
add_files("./hikyuu/hikyuu/**.cpp");
|
||||
add_files("./hikyuu/test_main.cpp")
|
||||
add_files("./hikyuu/utilities/test_Parameter.cpp")
|
||||
|
||||
before_run(prepare_run)
|
||||
after_run(coverage_report)
|
||||
|
Loading…
Reference in New Issue
Block a user