Previous Topic: HINT32 GetMVSFileTypes(void)

Next Topic: void SetCBUserData( void* pUserData )


void SetCallBack( PFN_CACOCB pfCallBack )

Sets the callback function for the checkout function that is called after each item is checked in.

Note: PFN_CACOCB is a function pointer with the following return value and argument list: void (*PFN_CACOCB)(int iBaseCBReturn, CaCheckout* pCheckout, void *pUserData, CaContainer *pBag = NULL);

pBag contains data from checkout operation. The callback function has ownership of pBag and must delete the data it points to.

Owning Class

CaCheckout

Arguments

PFN_CACOCB-function pointer to callback

Return Value

None

Example

void cbFunction(int iBaseCBReturn, CaCheckout* pCheckout, void *pUserData, CaContainer *pBag = NULL)
{
   CaString* pString = (CaString*)pUserData;
   CaString szViewPath = (LPCTSTR)pBag->Props(ATTR_KEY_VIEWPATH, 0);
   cout << *pString << szViewPath << endl;
}
CaCheckout& rCheckout = rContext.GetCheckout(); rCheckout.SetCallBack( cbFunction );

More information: