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__A11E0101_CFC7_4F60_9BD3_0566AFE49170__INCLUDED_)
  5. #define AFX_MYSTRINGARRAY_H__A11E0101_CFC7_4F60_9BD3_0566AFE49170__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class MyStringArray  
  10. {
  11. public:
  12. MyStringArray();
  13. virtual ~MyStringArray();
  14. protected:
  15. CStringArray OidStr;
  16. CStringArray Value;
  17. CString err;
  18. public:
  19.     void GetTree(CString &ip,CString &community,CString &oid_str);
  20.     void GetOne(CString &ip,CString &community,CString &oid_str,CString &reply);
  21. void GetNextOne(CString &ip,CString &community,CString &oid_str,CString &reply);
  22. void Add(CString &s_Oid,CString &s_Value);
  23. CString GetOid(int index);
  24.     CString GetValue(int index);
  25. void SetValue(int index,CString Str);
  26. int GetCount();
  27. void clear();
  28. };
  29. #endif // !defined(AFX_MYSTRINGARRAY_H__A11E0101_CFC7_4F60_9BD3_0566AFE49170__INCLUDED_)