msdnintegratorconfig.cpp

来自「CppUnit 是著名的用于单元测试的JUnit框架的C++移植。测试输出是XM」· C++ 代码 · 共 35 行

CPP
35
字号
// MSDNIntegratorConfig.cpp: implementation of the CMSDNIntegratorConfig class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MSDNIntegratorConfig.h"
#include "Utility.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMSDNIntegratorConfig::CMSDNIntegratorConfig()
{
  CString section( "MSDNIntegrator" );
  m_strChi = GetFullPath( AfxGetApp()->GetProfileString( section, "Chi" ) );
  m_strChm = GetFullPath( AfxGetApp()->GetProfileString( section, "Chm" ) );
  m_strTitle = AfxGetApp()->GetProfileString( section, "Title" );
  m_strGUID = AfxGetApp()->GetProfileString( section, "GUID" );
  m_strVersion = AfxGetApp()->GetProfileString( section, "Version", "1" );
}

CMSDNIntegratorConfig::~CMSDNIntegratorConfig()
{

}

BOOL CMSDNIntegratorConfig::IsValid() const
{
  return !m_strChi.IsEmpty()  &&
         !m_strChm.IsEmpty()  &&
         !m_strTitle.IsEmpty()  &&
         !m_strGUID.IsEmpty();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?