调整 log.h 位置

This commit is contained in:
fasiondog 2024-07-17 01:43:21 +08:00
parent 4cc39ad3cb
commit 302a336986
33 changed files with 38 additions and 42 deletions

View File

@ -29,7 +29,7 @@
#include <map>
#include <unordered_map>
#include "Log.h"
#include "utilities/Log.h"
#include "utilities/osdef.h"
#include "utilities/cppdef.h"
#include "utilities/datetime/Datetime.h"

View File

@ -20,7 +20,7 @@
#include <H5public.h>
#endif
#include "Log.h"
#include "utilities/Log.h"
#include "hikyuu.h"
#include "GlobalInitializer.h"
#include "StockManager.h"

View File

@ -10,7 +10,7 @@
#include "hikyuu/indicator/Indicator.h"
#include "hikyuu/trade_sys/system/System.h"
#include "hikyuu/trade_manage/Performance.h"
#include "../Log.h"
#include "hikyuu/utilities/Log.h"
namespace hku {

View File

@ -9,8 +9,8 @@
#include <boost/algorithm/string.hpp>
#include "MySQLBaseInfoDriver.h"
#include "hikyuu/utilities/Log.h"
#include "../../../StockManager.h"
#include "../../../Log.h"
#include "../table/MarketInfoTable.h"
#include "../table/StockTypeInfoTable.h"
#include "../table/StockWeightTable.h"
@ -281,12 +281,9 @@ Parameter MySQLBaseInfoDriver::getFinanceInfo(const string &market, const string
<< "f.zhuyinglirun, f.yingshouzhangkuan, f.yingyelirun, f.touzishouyu,"
<< "f.jingyingxianjinliu, f.zongxianjinliu, f.cunhuo, f.lirunzonghe,"
<< "f.shuihoulirun, f.jinglirun, f.weifenpeilirun, f.meigujingzichan,"
<< "f.baoliu2 from stkfinance f, stock s, market m "
<< "where m.market='" << market << "'"
<< " and s.code = '" << code << "'"
<< " and s.marketid = m.marketid"
<< " and f.stockid = s.stockid"
<< " order by updated_date DESC limit 1";
<< "f.baoliu2 from stkfinance f, stock s, market m " << "where m.market='" << market << "'"
<< " and s.code = '" << code << "'" << " and s.marketid = m.marketid"
<< " and f.stockid = s.stockid" << " order by updated_date DESC limit 1";
auto con = m_pool->getConnect();

View File

@ -8,10 +8,9 @@
#include <fstream>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "hikyuu/utilities/Log.h"
#include "KDataTempCsvDriver.h"
#include "../../../Log.h"
namespace hku {
KDataTempCsvDriver::~KDataTempCsvDriver() {}

View File

@ -6,7 +6,7 @@
*/
#include <boost/lexical_cast.hpp>
#include "../../../Log.h"
#include "hikyuu/utilities/Log.h"
#include "MySQLKDataDriver.h"
#include "KRecordTable.h"

View File

@ -8,8 +8,8 @@
*/
#include "hikyuu/GlobalInitializer.h"
#include "hikyuu/utilities/Log.h"
#include "GlobalTaskGroup.h"
#include "../Log.h"
namespace hku {

View File

@ -7,7 +7,7 @@
#pragma once
#include "hikyuu/exception.h"
#include "hikyuu/utilities/exception.h"
namespace hku {

View File

@ -5,10 +5,10 @@
* Author: fasiondog
*/
#include <hikyuu/GlobalInitializer.h>
#include "hikyuu/GlobalInitializer.h"
#include "hikyuu/utilities/Log.h"
#include <mutex>
#include "scheduler.h"
#include "../../Log.h"
namespace hku {

View File

@ -7,10 +7,10 @@
#include <stdexcept>
#include <algorithm>
#include <forward_list>
#include "hikyuu/utilities/Log.h"
#include "Indicator.h"
#include "IndParam.h"
#include "../Stock.h"
#include "../Log.h"
#include "../GlobalInitializer.h"
#include "imp/ICval.h"

View File

@ -6,8 +6,8 @@
*/
#include "FixedATradeCost.h"
#include "hikyuu/utilities/Log.h"
#include "../../StockTypeInfo.h"
#include "../../Log.h"
#if HKU_SUPPORT_SERIALIZATION
BOOST_CLASS_EXPORT(hku::FixedATradeCost)

View File

@ -6,9 +6,9 @@
*/
#include <thread>
#include "config.h"
#include "utilities/os.h"
#include "GlobalInitializer.h"
#include "hikyuu/config.h"
#include "hikyuu/GlobalInitializer.h"
#include "os.h"
#include "Log.h"
#if USE_SPDLOG_LOGGER

View File

@ -13,7 +13,7 @@
#define NOMINMAX
#endif
#include "config.h"
#include "../config.h"
#include "exception.h"
// clang-format off

View File

@ -6,8 +6,8 @@
*/
#include <boost/algorithm/string.hpp>
#include "hikyuu/utilities/Log.h"
#include "hikyuu/Block.h"
#include "../Log.h"
#include "Parameter.h"
namespace hku {

View File

@ -11,7 +11,7 @@
#include <unordered_map>
#include <functional>
#include "hikyuu/utilities/datetime/Datetime.h"
#include "hikyuu/Log.h"
#include "hikyuu/utilities/Log.h"
#include "thread/ThreadPool.h"
#include "cppdef.h"

View File

@ -11,7 +11,7 @@
#include <fmt/format.h>
#include "hikyuu/utilities/Null.h"
#include "hikyuu/Log.h"
#include "hikyuu/utilities/Log.h"
#include "hikyuu/utilities/arithmetic.h"
#include "Datetime.h"

View File

@ -10,7 +10,7 @@
#include <cstdint>
#include "TimeDelta.h"
#include "hikyuu/utilities/arithmetic.h"
#include "hikyuu/Log.h"
#include "hikyuu/utilities/Log.h"
namespace hku {

View File

@ -13,7 +13,7 @@
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "../../Log.h"
#include "hikyuu/utilities/Log.h"
#ifndef HKU_API
#define HKU_API

View File

@ -8,7 +8,7 @@
#pragma once
#include <fmt/format.h>
#include "hikyuu/exception.h"
#include "hikyuu/utilities/exception.h"
namespace hku {

View File

@ -9,7 +9,7 @@
#include <iterator>
#include "hikyuu/utilities/arithmetic.h"
#include "hikyuu/Log.h"
#include "hikyuu/utilities/Log.h"
#include "hikyuu/utilities/osdef.h"
#include "DBConnectBase.h"

View File

@ -9,7 +9,7 @@
#include <thread>
#include "../../../config.h"
#include "../../../Log.h"
#include "hikyuu/utilities/Log.h"
#include "SQLiteConnect.h"
#include "SQLiteStatement.h"

View File

@ -33,7 +33,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "arithmetic.h"
#include "hikyuu/Log.h"
#include "Log.h"
#include "os.h"
#ifdef _MSC_VER

View File

@ -7,7 +7,7 @@
#include "doctest/doctest.h"
#include <iostream>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
#include <hikyuu/Block.h>
#include <hikyuu/StockManager.h>

View File

@ -8,7 +8,7 @@
#include "doctest/doctest.h"
#include <hikyuu/StockManager.h>
#include <hikyuu/utilities/runtimeinfo.h>
#include <hikyuu/Log.h>
#include <hikyuu/utilities/Log.h>
using namespace hku;

View File

@ -9,7 +9,7 @@
#include <hikyuu/utilities/datetime/Datetime.h>
#include <hikyuu/utilities/Null.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
using namespace hku;

View File

@ -7,7 +7,7 @@
#include "doctest/doctest.h"
#include <hikyuu/utilities/db_connect/DBCondition.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
#include <fmt/ranges.h>
using namespace hku;

View File

@ -6,7 +6,7 @@
*/
#include "doctest/doctest.h"
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
#include <hikyuu/utilities/Parameter.h>
#include <hikyuu/StockManager.h>

View File

@ -7,7 +7,7 @@
#include "doctest/doctest.h"
#include <hikyuu/utilities/TimerManager.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
using namespace hku;

View File

@ -7,7 +7,7 @@
#include "doctest/doctest.h"
#include <hikyuu/utilities/arithmetic.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
using namespace hku;

View File

@ -7,7 +7,7 @@
*/
#include <doctest/doctest.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
#include <hikyuu/utilities/os.h>
using namespace hku;

View File

@ -13,7 +13,7 @@
#include <hikyuu/utilities/thread/MQThreadPool.h>
#include <hikyuu/utilities/thread/MQStealThreadPool.h>
#include <hikyuu/utilities/SpendTimer.h>
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
using namespace hku;

View File

@ -5,7 +5,7 @@
* Author: fasiondog
*/
#include <hikyuu/Log.h>
#include "hikyuu/utilities/Log.h"
#include "pybind_utils.h"
using namespace hku;