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.
CaCheckout
PFN_CACOCB-function pointer to callback
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:
| Copyright © 2013 CA. All rights reserved. |
|