GME  13
EnumVar.h
Go to the documentation of this file.
00001 // enumvar.h : header file
00002 //
00003 // This is a part of the Microsoft Foundation Classes C++ library.
00004 // Copyright (C) 1992-1998 Microsoft Corporation
00005 // All rights reserved.
00006 //
00007 // This source code is only intended as a supplement to the
00008 // Microsoft Foundation Classes Reference and related
00009 // electronic documentation provided with the library.
00010 // See these sources for detailed information regarding the
00011 // Microsoft Foundation Classes product.
00012 
00014 // CEnumVariant command target
00015 
00016 class CEnumVariant : public CCmdTarget
00017 {
00018         DECLARE_DYNCREATE(CEnumVariant)
00019 public:
00020         CEnumVariant();         // protected constructor used by dynamic creation
00021         virtual ~CEnumVariant();
00022 
00023 // Attributes
00024 public:
00025         int m_nIndex;           // next/current position w/in m_rgContents
00026         int m_nCount;           // total count of variants
00027         VARIANT* m_pContents;   // contents of collection
00028 
00029 // Operations
00030 public:
00031         void SetContents(VARIANT* pContents, int nCount, int nIndex = 0);
00032 
00033 // Overrides
00034         // ClassWizard generated virtual function overrides
00035         //{{AFX_VIRTUAL(CEnumVariant)
00036         public:
00037         virtual void OnFinalRelease();
00038         //}}AFX_VIRTUAL
00039 
00040 // Implementation
00041 protected:
00042         CEnumVariant* m_pClonedFrom;
00043 
00044         // Generated message map functions
00045         //{{AFX_MSG(CEnumVariant)
00046                 // NOTE - the ClassWizard will add and remove member functions here.
00047         //}}AFX_MSG
00048         DECLARE_MESSAGE_MAP()
00049 
00050 public:
00051         // Implementation of IEnumVARIANT
00052         BEGIN_INTERFACE_PART(EnumVARIANT, IEnumVARIANT)
00053                 STDMETHOD(Next)(ULONG celt, VARIANT* rgvar, ULONG* pceltFetched);
00054                 STDMETHOD(Skip)(ULONG celt) ;
00055                 STDMETHOD(Reset)() ;
00056                 STDMETHOD(Clone)(IEnumVARIANT** ppenum);
00057         END_INTERFACE_PART(EnumVARIANT)
00058         DECLARE_INTERFACE_MAP()
00059 };
00060