diff --git a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/AddCondition.cpp b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/AddCondition.cpp index 97fe8f14..522fde9c 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/AddCondition.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/AddCondition.cpp @@ -7,6 +7,10 @@ #include "AddCondition.h" +#if HKU_SUPPORT_SERIALIZATION +BOOST_CLASS_EXPORT(hku::AddCondition) +#endif + namespace hku { AddCondition::AddCondition() : ConditionBase("CN_Add") {} diff --git a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/DivCondition.cpp b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/DivCondition.cpp index a724c519..fa687be8 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/DivCondition.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/DivCondition.cpp @@ -7,6 +7,10 @@ #include "DivCondition.h" +#if HKU_SUPPORT_SERIALIZATION +BOOST_CLASS_EXPORT(hku::DivCondition) +#endif + namespace hku { DivCondition::DivCondition() : ConditionBase("CN_Div") {} diff --git a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/MultiCondition.cpp b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/MultiCondition.cpp index 6732f985..c913fe2f 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/MultiCondition.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/MultiCondition.cpp @@ -7,6 +7,10 @@ #include "MultiCondition.h" +#if HKU_SUPPORT_SERIALIZATION +BOOST_CLASS_EXPORT(hku::MultiCondition) +#endif + namespace hku { MultiCondition::MultiCondition() : ConditionBase("CN_Multi") {} diff --git a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/OrCondition.cpp b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/OrCondition.cpp index cd23d9e0..fde36785 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/OrCondition.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/OrCondition.cpp @@ -7,6 +7,10 @@ #include "OrCondition.h" +#if HKU_SUPPORT_SERIALIZATION +BOOST_CLASS_EXPORT(hku::OrCondition) +#endif + namespace hku { OrCondition::OrCondition() : ConditionBase("CN_Or") {} diff --git a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/SubCondition.cpp b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/SubCondition.cpp index 70a0daac..dffa5348 100644 --- a/hikyuu_cpp/hikyuu/trade_sys/condition/imp/SubCondition.cpp +++ b/hikyuu_cpp/hikyuu/trade_sys/condition/imp/SubCondition.cpp @@ -7,6 +7,10 @@ #include "SubCondition.h" +#if HKU_SUPPORT_SERIALIZATION +BOOST_CLASS_EXPORT(hku::SubCondition) +#endif + namespace hku { SubCondition::SubCondition() : ConditionBase("CN_Sub") {}