You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
662 B

#ifndef STOCKSDECODER_H
#define STOCKSDECODER_H
#include "exceldecoder.h"
#include <QMap>
#include <QVariant>
#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<QList<QVariant> > edatas,QString date = "");
private:
QString parseStockHead(QList<QVariant> headDatas);//½âÎöÍ· ·µ»Ø½»Ò×ÈÕ
void toValueStockInfo(_stocksInfo &param ,int index,QString value);
private:
QMap<int,QString> m_wholeStocksKeyIndexs;
};
#endif // STOCKSDECODER_H