MyStringArray.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Visual C++

  1. // MyStringArray.h: interface for the MyStringArray class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_)
  5. #define AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. //#include "snmp_pp.h"
  10. class MyStringArray  
  11. {
  12. public:
  13. MyStringArray();
  14. virtual ~MyStringArray();
  15. protected:
  16. CStringArray OidStr;
  17. CStringArray Value;
  18. CString err;
  19. public:
  20.     bool GetTree(CString &ip,CString &community,CString &oid_str);
  21.     void GetOne(CString &ip,CString &community,CString &oid_str,CString &reply);
  22. void GetNextOne(CString &ip,CString &community,CString &oid_str,CString &reply);
  23.     void Set(CString &ip,CString &community,CString &oid_str,CString value,int x);
  24. void Add(CString &s_Oid,CString &s_Value);
  25. CString GetOid(int index);
  26.     CString GetValue(int index);
  27. void SetValue(int index,CString Str);
  28. int GetCount();
  29. void clear();
  30. };
  31. #endif // !defined(AFX_MYSTRINGARRAY_H__A405F2FD_7582_456B_A3E3_E1993B31B647__INCLUDED_)