www.pudn.com > Ge_opc_Server_v1.rar > I_BSAS.H


zzz this can't be a tear off - it has to be an object... 
///////////////////////////////////////////////////////////////////////////// 
// LHEpipeview specific implementation of an IOPCBrowserServerAddressSpace Interface 
// 
class ILHEpipeviewBSAS : public IOPCBrowseServerAddressSpace 
{ 
  public: 
    ILHEpipeviewBSAS( LPUNKNOWN ); 
    ~ILHEpipeviewBSAS( void); 
 
	// the IUnknown Functions 
	STDMETHODIMP         QueryInterface( REFIID iid, LPVOID* ppInterface); 
	STDMETHODIMP_(ULONG) AddRef( void); 
	STDMETHODIMP_(ULONG) Release( void); 
 
	// the IOPCBrowse... Functions 
    STDMETHODIMP QueryOrganization( 
            /* [out] */ OPCNAMESPACETYPE  *pNameSpaceType) ; 
 
    STDMETHODIMP ChangeBrowsePosition( 
            /* [in] */ OPCBROWSEDIRECTION dwBrowseDirection, 
            /* [string][in] */ LPCWSTR szString) ; 
 
    STDMETHODIMP BrowseOPCItemIDs( 
            /* [in] */ OPCBROWSETYPE dwBrowseFilterType, 
            /* [string][in] */ LPCWSTR szFilterCriteria, 
            /* [in] */ VARTYPE vtDataTypeFilter, 
            /* [in] */ DWORD dwAccessRightsFilter, 
            /* [out] */ LPENUMSTRING  *ppIEnumString) ; 
 
    STDMETHODIMP GetItemID( 
            /* [in] */ LPWSTR szItemDataID, 
            /* [string][out] */ LPWSTR  *szItemID) ; 
 
    STDMETHODIMP BrowseAccessPaths( 
            /* [string][in] */ LPCWSTR szItemID, 
            /* [out] */ LPENUMSTRING  *ppIEnumString) ; 
 
 
 
  private: 
	// Member Variables 
	ULONG           m_cRef;     //this Objects reference count 
	LPUNKNOWN       m_pUnkRef;  //'parent' IUnknown for ref counting 
	IMalloc			*m_pmem;	// memory allocator to use 
};