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

ASN 타입 클래스의 root 클래스 더 자세히 ...

CAsnType에 대한 상속 다이어그램 :
CAsnComplex CAsnInt CAsnLong CAsnNull CAsnOid CAsnString

Public 멤버 함수

virtual ~CAsnType ()
virtual int ParsePacket (const char *pszPacket, int iPacketLen)=0
virtual int MakePacket (char *pszPacket, int iPacketSize)=0
virtual CAsnTypeCopy ()=0
virtual bool GetInt (uint32_t &iValue)
 ASN 변수에 정수가 저장되어 있으면 정수값을 가져온다.
virtual bool GetLong (uint64_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 멤버 함수

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 길이를 저장한다.

Public 속성

uint8_t m_cType
 타입
uint32_t m_iLen
 길이

상세한 설명

ASN 타입 클래스의 root 클래스

생성자 & 소멸자 문서화

virtual CAsnType::~CAsnType ( )
inlinevirtual

멤버 함수 문서화

virtual CAsnType* CAsnType::Copy ( )
pure virtual

CAsnString, CAsnComplex, CAsnInt, CAsnOid, CAsnLong, CAsnNull에서 구현되었습니다.

virtual int CAsnType::MakePacket ( char *  pszPacket,
int  iPacketSize 
)
pure virtual

CAsnString, CAsnComplex, CAsnInt, CAsnOid, CAsnLong, CAsnNull에서 구현되었습니다.

virtual int CAsnType::ParsePacket ( const char *  pszPacket,
int  iPacketLen 
)
pure virtual

CAsnString, CAsnComplex, CAsnInt, CAsnOid, CAsnLong, CAsnNull에서 구현되었습니다.

멤버 데이타 문서화

uint8_t CAsnType::m_cType

타입

uint32_t CAsnType::m_iLen

길이