badday.h File Reference

#include "bastypes.h"

Data Structures

struct  TBadDayList
 Bad day list. More...

Functions

TDate JpmcdsBad2GoodBadDayList (TBadDayList *bdl, long d)
 This function converts a bad day to a good one (if it's in list).
TDate JpmcdsGood2BadBadDayList (TBadDayList *bdl, long d)
 This function converts a good day to a bad one (if it's in list).
void JpmcdsFixBadDLBadDayList (TBadDayList *bdl, TDateList *dl)
 This function converts bad dates in a date list to good ones based on a BadDayList.

Detailed Description


Function Documentation

TDate JpmcdsBad2GoodBadDayList ( TBadDayList bdl,
long  d 
)

This function converts a bad day to a good one (if it's in list).

Parameters:
bdl (I) bad day list
d (I) bad date to convert

void JpmcdsFixBadDLBadDayList ( TBadDayList bdl,
TDateList dl 
)

This function converts bad dates in a date list to good ones based on a BadDayList.

DateList passed in is MODIFIED to contain "good" dates.

Parameters:
bdl (I) bad day list
dl (M) date list to convert

TDate JpmcdsGood2BadBadDayList ( TBadDayList bdl,
long  d 
)

This function converts a good day to a bad one (if it's in list).

Parameters:
bdl (I) bad day list
d (I) bad date to convert


Distributed by BN Algorithms Ltd -- consulting in quantitative finance, mathematical algorithms and software implementations. CDS Home Page. For enquires contact webs@bnikolic.co.uk.
This documentation is derived from ISDA CDS Standard Model version 1.7. You can get a copy of the original ISDA code at www.bnikolic.co.uk. This is a derivative work under the terms of the ISDA CDS Standard Model Public License. BN Algorithms Ltd licenses this work to you solely for on-screen viewing on your own computer. Making copies and further distribution of this work is prohibited.
This documentation is provided "as-is", without warranty of any kind, either expressed or implied, including, without limitation, warranties that the documentation is free of defects, merchantable, fit for a particular purpose or non-infringing. the entire risk as to the quality of the documentation is with you. Should this documentation prove defective in any respect, you (not the licensor) assume the cost of any necessary correction. This disclaimer of warranty constitutes an essential part of this license.