2019-04-02 23:26:59 +08:00
|
|
|
/*
|
|
|
|
* HistoryFinanceReader.h
|
2019-11-10 23:31:41 +08:00
|
|
|
*
|
2019-04-02 23:26:59 +08:00
|
|
|
* Copyright (c) 2019 fasiondog
|
2019-11-10 23:31:41 +08:00
|
|
|
*
|
2019-04-02 23:26:59 +08:00
|
|
|
* Created on: 2019-4-2
|
|
|
|
* Author: fasiondog
|
|
|
|
*/
|
|
|
|
|
2019-08-03 21:53:24 +08:00
|
|
|
#pragma once
|
2019-04-02 23:26:59 +08:00
|
|
|
#ifndef HISTORYFINANCEREADER_H_
|
|
|
|
#define HISTORYFINANCEREADER_H_
|
|
|
|
|
2019-04-05 17:43:35 +08:00
|
|
|
#include "../Stock.h"
|
2019-04-02 23:26:59 +08:00
|
|
|
|
|
|
|
namespace hku {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 读取历史财务信息
|
2020-06-26 21:39:53 +08:00
|
|
|
* @ingroup DataDriver
|
2019-04-02 23:26:59 +08:00
|
|
|
*/
|
|
|
|
class HKU_API HistoryFinanceReader {
|
|
|
|
public:
|
|
|
|
HistoryFinanceReader() = delete;
|
2020-11-02 23:47:15 +08:00
|
|
|
explicit HistoryFinanceReader(const string& dir);
|
2019-04-02 23:26:59 +08:00
|
|
|
virtual ~HistoryFinanceReader();
|
|
|
|
|
2019-11-10 23:31:41 +08:00
|
|
|
PriceList getHistoryFinanceInfo(Datetime date, const string& market, const string& code);
|
2019-04-03 22:31:55 +08:00
|
|
|
|
2019-04-02 23:26:59 +08:00
|
|
|
private:
|
|
|
|
string m_dir; //历史财务信息文件存放目录
|
|
|
|
};
|
|
|
|
|
2019-11-10 23:31:41 +08:00
|
|
|
} // namespace hku
|
2019-04-02 23:26:59 +08:00
|
|
|
|
|
|
|
#endif /* HISTORYFINANCEREADER_H_ */
|