mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 12:27:48 +08:00
update for macosx, static
This commit is contained in:
parent
afa5a0df93
commit
89559baac3
@ -147,8 +147,33 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
string m_name;
|
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
|
* @ingroup OrderBroker
|
||||||
|
@ -737,10 +737,6 @@ private:
|
|||||||
#endif /* HKU_SUPPORT_SERIALIZATION */
|
#endif /* HKU_SUPPORT_SERIALIZATION */
|
||||||
};
|
};
|
||||||
|
|
||||||
#if HKU_SUPPORT_SERIALIZATION
|
|
||||||
BOOST_SERIALIZATION_ASSUME_ABSTRACT(TradeManagerBase)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
inline void TradeManagerBase::baseCheckParam(const string& name) const {
|
inline void TradeManagerBase::baseCheckParam(const string& name) const {
|
||||||
if ("precision" == name) {
|
if ("precision" == name) {
|
||||||
int precision = getParam<int>("precision");
|
int precision = getParam<int>("precision");
|
||||||
|
@ -136,7 +136,6 @@ target("small-test")
|
|||||||
-- add files
|
-- add files
|
||||||
add_files("./hikyuu/hikyuu/**.cpp");
|
add_files("./hikyuu/hikyuu/**.cpp");
|
||||||
add_files("./hikyuu/test_main.cpp")
|
add_files("./hikyuu/test_main.cpp")
|
||||||
add_files("./hikyuu/utilities/test_Parameter.cpp")
|
|
||||||
|
|
||||||
before_run(prepare_run)
|
before_run(prepare_run)
|
||||||
after_run(coverage_report)
|
after_run(coverage_report)
|
||||||
|
Loading…
Reference in New Issue
Block a user