📄 bch_codingdoc.h
字号:
// BCH_CodingDoc.h : interface of the CBCH_CodingDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BCH_CODINGDOC_H__D31E1C21_F42D_4D63_BDBF_69A1A41AD87B__INCLUDED_)
#define AFX_BCH_CODINGDOC_H__D31E1C21_F42D_4D63_BDBF_69A1A41AD87B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CBCH_CodingDoc : public CDocument
{
protected: // create from serialization only
CBCH_CodingDoc();
DECLARE_DYNCREATE(CBCH_CodingDoc)
// Attributes
public:
//用于文件操作得变量
CString file_name;
uint32_t file_size;
CString m_FileData;
CList<uint8_t, uint8_t&> LFileData;
CString m_Title;
CFile f_BCH;
//用于编码存储的变量
typedef struct BCH_code_s{
BOOL info[7];
BOOL check[8];
}BCH_code_t;
// Operations
public:
void encode(BCH_code_t& data);
void encode_file();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBCH_CodingDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBCH_CodingDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBCH_CodingDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BCH_CODINGDOC_H__D31E1C21_F42D_4D63_BDBF_69A1A41AD87B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -