#ifndef STOCKSDECODER_H #define STOCKSDECODER_H #include "exceldecoder.h" #include #include #include "db/structs.h" class StocksDecoder : public ExcelDecoder { public: QList<_stocksInfo> data; public: StocksDecoder(); virtual DecoderType decoderType(){ return DecoderType::stocks;} virtual ~StocksDecoder(){} virtual void decode(QList > edatas,QString date = ""); private: QString parseStockHead(QList headDatas);//解析头 返回交易日 void toValueStockInfo(_stocksInfo ¶m ,int index,QString value); private: QMap m_wholeStocksKeyIndexs; }; #endif // STOCKSDECODER_H