📄 endpoint.h
字号:
/*=============================================================
Function:
Author: Leon Wang <wlywly@sina.com giga2@tom.com>
==============================================================*/
// Endpoint.h: interface for the Endpoint class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ENDPOINT_H__2712E20E_C891_4700_BE79_32405AF883D6__INCLUDED_)
#define AFX_ENDPOINT_H__2712E20E_C891_4700_BE79_32405AF883D6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//##ModelId=424BB646017E
class Endpoint
{
public:
//##ModelId=424BB646017F
Endpoint();
//##ModelId=424BB6460180
Endpoint(CString _epid, CString _alias);
//##ModelId=424BB6460190
virtual ~Endpoint();
//##ModelId=424BB6460192
BOOL equals(Endpoint* other);
//##ModelId=424BB646019E
CString getEpid();
//##ModelId=424BB646019F
void setEpid(CString epid) ;
//##ModelId=424BB64601A1
CString getAlias();
//##ModelId=424BB64601AD
void setAlias(CString alias);
//##ModelId=424BB64601AF
int getState();
//##ModelId=424BB64601B0
void setState(int state) ;
//##ModelId=424BB64601BE
CString toString();
//##ModelId=424BB64601BF
void hashCode(CString & hashString) ;
//##ModelId=424BB64601C1
void SHA1HashCode(char* &str);
// the states an endpoint can be in
//##ModelId=424BB64601CD
static int AVAILABLE ;
//##ModelId=424BB64601DC
static int TALKING ;
private:
//##ModelId=424BB64601DD
CString epid;
//##ModelId=424BB64601EC
CString alias;
//##ModelId=424BB64601ED
int state;
};
#endif // !defined(AFX_ENDPOINT_H__2712E20E_C891_4700_BE79_32405AF883D6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -