📄 pageinfo.cpp
字号:
/*==========================================================
*
* Copyright (c) 2008
* All rights reserved.
*
* 文件名称: PageInfo.cpp
* 摘 要: 存放网页信息
*
* 当前版本: 1.0
* 作 者: 祝美莲
* 创建日期: 2008-5-10
*
*==========================================================
*/
// PageInfo.cpp: implementation of the CPageInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DeTreeSVM.h"
#include "PageInfo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CPageInfo::CPageInfo()
{
}
CPageInfo::~CPageInfo()
{
}
/********************************************************************
// 创建日期 : 2008-5-19 20:47:29
// 作 者 : 祝美莲<zml123818@163.com>
// 函数名称 : CPageInfo::GetType
// 函数功能 : 获得网页类型
// 返回类型 : int
********************************************************************/
int CPageInfo::GetType()
{
return nType;
}
/********************************************************************
// 创建日期 : 2008-5-19 20:47:53
// 作 者 : 祝美莲<zml123818@163.com>
// 函数名称 : CPageInfo::GetCharacterVector
// 函数功能 : 获得法向量
// 返回类型 : VectorItem
// 函数参数 : int n
********************************************************************/
VectorItem CPageInfo::GetCharacterVector( int n )
{
return viCharacterVector.at( n );
}
/********************************************************************
// 创建日期 : 2008-5-19 20:48:22
// 作 者 : 祝美莲<zml123818@163.com>
// 函数名称 : CPageInfo::SetType
// 函数功能 : 设置网页类型
// 返回类型 : void
// 函数参数 : int nSort
********************************************************************/
void CPageInfo::SetType( int nSort )
{
nType = nSort;
}
/********************************************************************
// 创建日期 : 2008-5-19 20:49:24
// 作 者 : 祝美莲<zml123818@163.com>
// 函数名称 : CPageInfo::SetCharacterVector
// 函数功能 : 设置法向量
// 返回类型 : void
// 函数参数 : VectorItem vi
********************************************************************/
void CPageInfo::SetCharacterVector( VectorItem vi )
{
viCharacterVector.push_back( vi );
}
/********************************************************************
// 创建日期 : 2008-5-19 20:49:46
// 作 者 : 祝美莲<zml123818@163.com>
// 函数名称 : CPageInfo::GetSize
// 函数功能 : 获得最大维数
// 返回类型 : int
********************************************************************/
int CPageInfo::GetSize( )
{
return viCharacterVector.size();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -