Is it correct or we need to do some code change. Please let me know.
Your help is highly appreciated. Thanks.
Expand|Select|Wrap|Line Numbers
- int IsSwapClearable ( const sTRADE* pSummitTrade )
- {
- cout<<"INSIDE IsSwapClearable()"<<endl;
- try
- {
- int retval = sFALSE;
- CheckSwapClear* mySwapClearChecks = new CheckSwapClear();
- // must be a mapped counterparty so do not call IsSwapClearCounterparty();
- if ( mySwapClearChecks->IsSwapClearMappedCounterparty ( pSummitTrade->Base.Env->Cust.Name ) == sTRUE )
- {
- switch ( pSummitTrade->Base.TradeType )
- {
- case sTT_SWAP :
- retval = mySwapClearChecks->IsSwapClearableSwap ( pSummitTrade );
- break;
- default :
- break;
- }
- }
- cout<<"EXITING IsSwapClearable()"<<endl;
- return retval;
- }
- catch( DmgException& aExcep )
- {
- mLogMessage ( "EXCEPTION caught in IsSwapClearable()" );
- cout<<"EXITING A IsSwapClearable()"<<endl;
- throw;
- }
- catch ( ... )
- {
- mLogMessage ( "Unknown Exceptions caught in IsSwapClearable()" );
- cout<<"EXITING B IsSwapClearable()"<<endl;
- throw;
- }
- }