Sets the callback function for the move item function that is called after each item is refactored.
Note: PFN_CAMVICB is a function pointer with the following return value and argument list: void (*PFN_CAMVICB)(int iBaseCBReturn, CaMoveItem* pMoveItem, void *pUserData, CaContainer *pBag = NULL);
pBag contains data from the checkout operation. The callback function has ownership of pBag and must delete the data it points to.
CaMoveItem
PFN_CARNICB-function pointer to callback
None
Example
void cbFunction(int iBaseCBReturn, CaMoveItem* pMoveItem, void *pUserData, CaContainer *pBag = NULL)
{
CaString* pString = (CaString*)pUserData;
CaString szViewPath = (LPCTSTR)pBag->Props(ATTR_KEY_VIEWPATH, 0);
cout << *pString << szViewPath << endl;
}
CaMoveItem& rMoveItem = rContext.GetMoveItem(); rMoveItem.SetCallBack( cbFunction );
More information:
| Copyright © 2013 CA. All rights reserved. |
|