📄 nodeinfo.cpp
字号:
//////////////////////////////////////////////////////////////////////
//nodeinfo.cpp
//Author:smoke [smoke_aT_tomydan.net]
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//Header file
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "nodeinfo.h"
//////////////////////////////////////////////////////////////////////
//construct
//////////////////////////////////////////////////////////////////////
CNodeInfo::CNodeInfo()
{
m_Count = 0;
m_strFileName = _T("");//Link this support unicode?
m_dwFileLen = 0;
m_bStatus = FALSE;
}
//////////////////////////////////////////////////////////////////////
//destruction
//////////////////////////////////////////////////////////////////////
CNodeInfo::~CNodeInfo()
{
//do nothing now
}
//////////////////////////////////////////////////////////////////////
//FunctionName:GetFileName
//Parameters:NULL
//return Type:CString
//Description:return the filename
//////////////////////////////////////////////////////////////////////
CString CNodeInfo::GetFileName()
{
return m_strFileName;
}
//////////////////////////////////////////////////////////////////////
//FunctionName:GetFileName
//Parameters:CString str
//return Type:void
//Description:To set the filename
//////////////////////////////////////////////////////////////////////
void CNodeInfo::SetFileName(CString str)
{
if(!str.IsEmpty())
{
m_strFileName = str;
}
else
return;
}
//////////////////////////////////////////////////////////////////////
//FunctionName:GetFileName
//Parameters:NULL
//return Type:DWORD
//Description:Return file's length
//////////////////////////////////////////////////////////////////////
DWORD CNodeInfo::GetFileLen()
{
return m_dwFileLen;
}
//////////////////////////////////////////////////////////////////////
//FunctionName:SetFileLen
//Parameters:DWORD len
//return Type:void
//Description:To sets file's len
//////////////////////////////////////////////////////////////////////
void CNodeInfo::SetFileLen(DWORD len)
{
if(len > 0)
{
m_dwFileLen = len;
}
else
return;
}
//////////////////////////////////////////////////////////////////////
//FunctionName:GetStatus
//Parameters:NULL
//return Type:boolean
//Description:Return status
//////////////////////////////////////////////////////////////////////
BOOL CNodeInfo::GetStatus()
{
return m_bStatus;
}
//////////////////////////////////////////////////////////////////////
//FunctionName:SetStatus
//Parameters:BOOL bStatus
//return Type:void
//Description:To sets status
//////////////////////////////////////////////////////////////////////
void CNodeInfo::SetStatus(BOOL bStatus)
{
m_bStatus = bStatus;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -