// TheCoData.cpp : Implementation of CTheCoData
#include "stdafx.h"
#include "CollectionServer.h"
#include "TheCoData.h"

/////////////////////////////////////////////////////////////////////////////
// CTheCoData


STDMETHODIMP CTheCoData::getID(long *id )
{
	*id=theID;
	return S_OK;
}

STDMETHODIMP CTheCoData::getDataType(BSTR *vt)
{
	*vt=theVT.Copy();
	return S_OK;
}

STDMETHODIMP CTheCoData::getData(VARIANT *data)
{
	VariantCopy(data,&theData);
	return S_OK;
}

STDMETHODIMP CTheCoData::putID(long id)
{
	theID=id;
	return S_OK;
}

STDMETHODIMP CTheCoData::putData(VARIANT *v)
{
	VariantCopy(&theData,v);
	theVT=kaBasicClasses::getSymbolicVT(v->vt).c_str();
	return S_OK;
}


STDMETHODIMP CTheCoData::getRef(long * ref)
{
	*ref=m_dwRef;
	return S_OK;
}



Hosted by www.Geocities.ws

1