📄 tdxdataprocessdlg.h
字号:
// TDXdataProcessDlg.h : header file
//
#if !defined(AFX_TDXDATAPROCESSDLG_H__6E9B5712_C828_4B45_9B7A_5FAB26A670F9__INCLUDED_)
#define AFX_TDXDATAPROCESSDLG_H__6E9B5712_C828_4B45_9B7A_5FAB26A670F9__INCLUDED_
#pragma warning (disable:4786)
#pragma warning (disable:4503)
#include <string>
#include <list>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <stdio.h>
#include <direct.h>
#include <stdlib.h>
#include <io.h>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTDXdataProcessDlg dialog
class CTDXdataProcessDlg : public CDialog
{
// Construction
public:
CTDXdataProcessDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTDXdataProcessDlg)
enum { IDD = IDD_TDXDATAPROCESS_DIALOG };
CSpinButtonCtrl m_spinbyDate;
CSpinButtonCtrl m_spin;
CString m_strDM;
CString m_date;
int m_N;
BOOL m_SHzs;
BOOL m_SZcz;
BOOL m_stepbydate;
BOOL m_stepAllData;
int m_NbyDate;
CString m_datebyDate;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTDXdataProcessDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTDXdataProcessDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonNextDay();
afx_msg void OnButtonOriPath();
afx_msg void OnButtonPath();
afx_msg void OnMyOk();
afx_msg void OnChangeDM();
afx_msg void OnChangeDate();
afx_msg void OnButtonClear();
afx_msg void OnDestroy();
afx_msg void OnChangeN();
afx_msg void OnButtonNextNday();
virtual void OnOK();
afx_msg void OnCheck1();
afx_msg void OnCheck2();
afx_msg void OnButtonFirstday();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButton6();
afx_msg void OnCheck3();
afx_msg void OnCheck5();
afx_msg void OnButtonNextDayByDate();
afx_msg void OnButtonNextNDayByDate();
afx_msg void OnButtonClearByDate();
afx_msg void OnChangeDayByDate();
afx_msg void OnChangeNbyDate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void Orifile2Tagfile(string& orifile, string& tagfile);
int get_tag_filename(string& filename);
int get_ori_filename(string & filename);
int get_ori_szcz_filename(string& filename);
int get_ori_szzs_filename(string& filename);
int get_tag_szcz_filename(string& filename);
int get_tag_szzs_filename(string& filename);
void load_ini();
void save_ini();
void clear_data(string& filename);
void NextNDay(string &orifname, string& tagfname, int& pos, bool& flag, unsigned long &date);
void NextDay(string &orifname, string& tagfname, int& pos, bool& flag, unsigned long &date);
void Firstday(string &orifname, string& tagfname, unsigned long &date);
CEdit m_Edit_OriPath;
CEdit m_Edit_Path;
CEdit m_Edit_DM;
CEdit m_Edit_Date;
string m_path_add_sh;
string m_path_add_sz;
string m_oripath; //源路径
string m_tagpath; //目标路径
int m_pos;
int m_pos_sh;
int m_pos_sz;
int m_day;
bool m_flag;
//按日期模式
CEdit m_Edit_DateByDate;
vector<int> m_date_vec; //取上证指数的日期,按日期步进就是按上证指数日期步进
multimap<int, string> m_firstday_map; //上市首日的日期和股票代码文件
int m_daybyDate;
int m_pos_date; //记录vec中的位置
void AddNextDayByDate(int date); //追加一天数据
void OverwriteByDate(int date); //将某天前全部数据复制到目标
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TDXDATAPROCESSDLG_H__6E9B5712_C828_4B45_9B7A_5FAB26A670F9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -