MyStringArray.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
- // MyStringArray.h: interface for the MyStringArray class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_)
- #define AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //#include "snmp_pp.h"
- class MyStringArray
- {
- public:
- MyStringArray();
- virtual ~MyStringArray();
- protected:
- CStringArray OidStr;
- CStringArray Value;
- CString err;
- public:
- bool GetTree(CString &ip,CString &community,CString &oid_str);
- void GetOne(CString &ip,CString &community,CString &oid_str,CString &reply);
- void GetNextOne(CString &ip,CString &community,CString &oid_str,CString &reply);
- void Add(CString &s_Oid,CString &s_Value);
- CString GetOid(int index);
- CString GetValue(int index);
- void SetValue(int index,CString Str);
- int GetCount();
- void clear();
- };
- #endif // !defined(AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_)