options.cpp
来自「一个不错的自制解压缩程序」· C++ 代码 · 共 46 行
CPP
46 行
// Options.cpp: implementation of the COptions class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TestZipDlg.h"
#include "Options.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
COptions::COptions()
{
m_reg.SetInfo("Options", "", this);
SetDefaults();
}
COptions::~COptions()
{
}
void COptions::Serialize(CArchive &ar)
{
if (ar.IsStoring())
ar << m_iSpan << m_bTdComp << m_uVolumeSize << m_bRecurse << m_iLevel;
else
ar >> m_iSpan >> m_bTdComp >> m_uVolumeSize >> m_bRecurse >> m_iLevel;
}
void COptions::SetDefaults()
{
m_iSpan = 0;
m_bRecurse = TRUE;
m_bTdComp = FALSE;
m_uVolumeSize = 1457500;
m_iLevel = -1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?