Sets the callback function for the rename item function that is called after each item is refactored.
Note: PFN_CARMICB is a function pointer with the following return value and argument list: void (*PFN_CARNICB)(int iBaseCBReturn, CaRenameItem* pRenameItem, 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.
CaRenameItem
PFN_CARNICB-function pointer to callback
None
Example
void cbFunction(int iBaseCBReturn, CaRenameItem* pRenameItem, void *pUserData, CaContainer *pBag = NULL)
{
CaString* pString = (CaString*)pUserData;
CaString szViewPath = (LPCTSTR)pBag->Props(ATTR_KEY_VIEWPATH, 0);
cout << *pString << szViewPath << endl;
}
CaRenameItem& rRenameItem = rContext.GetRenameItem(); rRenameItem.SetCallBack( cbFunction );
More information:
| Copyright © 2013 CA. All rights reserved. |
|