DataDefine.h in StockDataParse.rar
Sponsored links
#ifndef DATA_DEFINE_H_
#define DATA_DEFINE_H_
//using namespace std;
#include <Afxtempl.h>
#include <list>
#include <numeric>
#include <functional>
#include <vector>
#include "math.h"
////
#define MAX_SH_NUMBER 900000//999999
#define MAX_SZ_NUMBER 420047
#define SH_A_SHARE 0x01 //上海A股
#define SH_B_SHARE 0x02 //上海B股
#define SZ_A_SHARE 0x10 //深圳A股
#define SZ_B_SHARE 0x20 //深圳B股
/*
typedef struct _ST_StDate
{
/ *
union{
}* /
char chYear[5];
char chMonth[3];
char chDay[3];
}ST_Date;*/
typedef struct _ST_PriceInfo
{
float fOpenPrice;
float fHighPrice;
float fLowPrice;
float fClosePrice;
}ST_PriceInfo ;
typedef struct _ST_StockInfo
{
int iDate;
ST_PriceInfo stPriceInfo;
float fHandCount;
}ST_StockInfo;
typedef std::list <ST_StockInfo> List_ST_StockInfoQ;
typedef std::list<float> fList;
typedef std::vector < float > FloatArray;
typedef std::vector < int > IntArray;
/*typedef struct _ST_fun_of_pixel
{
int X_Fuc;
int Y_Fuc;
}fun_of_pixel;*/
//const int ciCycle=120; //均线数值设定
typedef struct _ST_StockType
{
char chStockTypeName[10];
unsigned int uiStockTypeNameOffset;
}ST_tockType;
typedef struct _ST_StockReportInfo
{
unsigned char chSc; //Sc=0 sz Sc =1 sh 沪深
unsigned char chGpdm[8]; //股票代码
unsigned char chGxrq[12]; //更新日期
double fZgb; //总股本
double fLtag; //流通A股
double fBg; //流通B股
double fHg; //H股
double fZzc; //总资产
double fLdzc; //流动资产
double fGdzc; //固定资产
double fWxzc; //无形资产
double fCqtz; //长期投资
double fLdfz; //流动负债
double fCqfz; //长期负债
double fZbgjj; //资本公积金
double fJzc;
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.