windows-nt/Source/XPSP1/NT/inetsrv/iis/staxinc/pbag.h
2020-09-26 16:20:57 +08:00

31 lines
543 B
C++

//
// pbag.h
//
#pragma once
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
#pragma warning (disable : 4786)
#include <string>
#include <map>
using namespace std;
#include "tunk.h"
class CPropBag : public TUnknown<IPropertyBag>
{
public:
CPropBag() : TUnknown<IPropertyBag> (IID_IPropertyBag) {};
STDMETHOD(Read)(LPCOLESTR pszPropName,VARIANT* pVar, IErrorLog* pErrorLog);
STDMETHOD(Write)(LPCOLESTR pszPropName, VARIANT* pVar);
protected:
typedef map <wstring, CComVariant> BAGMAP;
BAGMAP m_map;
};