www.pudn.com > SnmpToplog.rar > MyRoute.h


// MyRoute.h: interface for the CMyRoute class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYROUTE_H__5524C8FA_5D4C_40C6_924D_D082D80D184C__INCLUDED_) 
#define AFX_MYROUTE_H__5524C8FA_5D4C_40C6_924D_D082D80D184C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "mysubnet.h" 
#include "ShowTuoPuDlg.h" 
//#include "MySnmpDlg.h" 
//路由器类类 
 
class CMyRoute   
{ 
public: 
	CMyRoute(); 
	virtual ~CMyRoute(); 
public: 
	void ShowTouPu(); 
	void StopSearching(); 
	void SearchActiveHosts(); 
	void GetSubNetNumber(CString strIP,CString strMask,CString& strSubNetNumber); 
	void ChangeIPToInts(CString strIP, int &nField1, int &nField2, int &nField3, int &nField4); 
	BOOL IsNomalIP(CString strIP); 
	void GetSubNets(); 
	void ShowRouteTable(CListCtrl *pList); //显示路由表信息 
	void ShowSubNetInfo(CListCtrl* pList); //显示子网信息 
	void ShowSystemInfo(CListCtrl* pList); //显示系统信息 
 
	CStringArray m_SystemInfo; //路由器系统信息	 
	CStringArray m_ipRouteDest; //目的地址 
	CStringArray m_ipRouteType; //地址类型 3表示直接相连 
	CStringArray m_ipRouteMask; //子网掩码 
	CStringArray m_ipRouteTableName;//路由表变量名 
	CStringArray m_ipRouteTableValue;//路由表变量值 
	CPtrArray m_SubNets; //保存与该路由器直接相连的所有子网对象 
 
	CString m_strAddress; 
	CShowTuoPuDlg* m_pDlg; 
 
}; 
 
#endif // !defined(AFX_MYROUTE_H__5524C8FA_5D4C_40C6_924D_D082D80D184C__INCLUDED_)