update for macosx, static

This commit is contained in:
fasiondog 2024-11-20 12:53:19 +08:00
parent afa5a0df93
commit 89559baac3
3 changed files with 25 additions and 5 deletions

View File

@ -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

View File

@ -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");

View File

@ -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)