C++ SNMP Stack  0.10
Public 멤버 함수 | Public 속성 | 모든 멤버 목록
CAsnLong 클래스 참조

ASN long 타입 클래스 더 자세히 ...

CAsnLong에 대한 상속 다이어그램 :
CAsnType

Public 멤버 함수

 CAsnLong ()
 CAsnLong (uint8_t cType)
virtual ~CAsnLong ()
virtual int ParsePacket (const char *pszPacket, int iPacketLen)
 패킷을 파싱하여서 내부 변수에 패킷 데이터를 저장한다.
virtual int MakePacket (char *pszPacket, int iPacketSize)
 내부 변수를 패킷에 저장한다.
virtual CAsnTypeCopy ()
 복사한 객체를 리턴한다.
virtual bool GetLong (uint64_t &iValue)
 정수값을 가져온다.
int ParseLong (const char *pszPacket, int iPacketLen, uint8_t cLength, uint64_t &iValue)
 패킷에서 정수를 파싱한다.
- CAsnType(으)로부터 상속된 Public 멤버 함수
virtual ~CAsnType ()
virtual bool GetInt (uint32_t &iValue)
 ASN 변수에 정수가 저장되어 있으면 정수값을 가져온다.
virtual bool GetString (std::string &strValue)
 ASN 변수에 문자열이 저장되어 있으면 문자열을 가져온다.
int ParseHeader (const char *pszPacket, int iPacketLen)
 패킷을 파싱하여서 ASN.1 타입 및 body 길이를 저장한다.
int SetHeaderLength (char *pszPacket, int iPacketSize, int iLength)
 패킷에 body 길이를 저장한다.

Public 속성

uint64_t m_iValue
 ASN 값
- CAsnType(으)로부터 상속된 Public 속성
uint8_t m_cType
 타입
uint32_t m_iLen
 길이

추가로 상속된 멤버들

- CAsnType(으)로부터 상속된 정적 Public 멤버 함수
static int ParseInt (const char *pszPacket, int iPacketLen, uint8_t cLength, uint32_t &iValue)
 패킷에서 정수를 파싱한다.
static int SetInt (uint8_t *pszPacket, int iPacketLen, uint32_t iValue)
 ASN.1 header 의 body 길이를 저장한다.

상세한 설명

ASN long 타입 클래스

생성자 & 소멸자 문서화

CAsnLong::CAsnLong ( )
CAsnLong::CAsnLong ( uint8_t  cType)
CAsnLong::~CAsnLong ( )
virtual

멤버 데이타 문서화

uint64_t CAsnLong::m_iValue

ASN 값