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;
- }
- }
- return retval;
- }
- catch( DmgException& aExcep )
- {
- mLogMessage ( "EXCEPTION caught in IsSwapClearable()" );
- throw;
- }
- catch ( ... )
- {
- mLogMessage ( "Unknown Exceptions caught in IsSwapClearable()" );
- throw;
- }
- }
- And the destructor is defined as below:
- CheckSwapClear::~CheckSwapClear()
- {
- try
- {
- }
- catch( DmgException& aExcep )
- {
- aExcep.ReThrowGpo("CheckSwapClear::~CheckSwapClear()", sSERIOUS );
- }
- catch ( ... )
- {
- DmgException::ThrowGpo( "CheckSwapClear::~CheckSwapClear() : Unknown Excep
- tion", sSERIOUS );
- }
- }
Rasmi.