MyStringArray.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
- // MyStringArray.h: interface for the MyStringArray class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MYSTRINGARRAY_H__88F1BB24_5742_4245_81D7_B0BEF55AB4A3__INCLUDED_)
- #define AFX_MYSTRINGARRAY_H__88F1BB24_5742_4245_81D7_B0BEF55AB4A3__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:
- void 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 GetThree(CString &ip,CString &community,CString &oid_str,
- CString &index,unsigned long &r1,unsigned long &r2,unsigned long &r3);
- 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__88F1BB24_5742_4245_81D7_B0BEF55AB4A3__INCLUDED_)