MyStringArray.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
- // MyStringArray.h: interface for the MyStringArray class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MYSTRINGARRAY_H__DBEF301B_3F84_4108_A861_901091668C96__INCLUDED_)
- #define AFX_MYSTRINGARRAY_H__DBEF301B_3F84_4108_A861_901091668C96__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 Set(CString &ip,CString &community,CString &oid_str,CString value,int x);
- 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__DBEF301B_3F84_4108_A861_901091668C96__INCLUDED_)