creditdefaultswap.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 /*
4  Copyright (C) 2010 Roland Lichters
5  Copyright (C) 2014 Jose Aparicio
6 
7  This file is part of QuantLib, a free-software/open-source library
8  for financial quantitative analysts and developers - http://quantlib.org/
9 
10  QuantLib is free software: you can redistribute it and/or modify it
11  under the terms of the QuantLib license. You should have received a
12  copy of the license along with this program; if not, please email
13  <quantlib-dev@lists.sf.net>. The license is also available online at
14  <http://quantlib.org/license.shtml>.
15 
16  This program is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18  FOR A PARTICULAR PURPOSE. See the license for more details.
19 */
20 
21 #ifndef qla_credit_default_swap_hpp
22 #define qla_credit_default_swap_hpp
23 
24 #include <qlo/baseinstruments.hpp>
25 
26 #include <ql/types.hpp>
27 #include <ql/default.hpp>
28 #include <ql/time/schedule.hpp>
29 #include <ql/time/businessdayconvention.hpp>
30 #include <ql/time/daycounter.hpp>
31 
32 namespace QuantLib {
33  class Date;
34 }
35 
36 namespace QuantLibAddin {
37 
38  class CreditDefaultSwap : public Instrument {
39  public:
41  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
42  QuantLib::Protection::Side side,
43  QuantLib::Real notional,
44  QuantLib::Rate upfront,
45  QuantLib::Rate spread,
46  const boost::shared_ptr<QuantLib::Schedule>& schedule,
47  QuantLib::BusinessDayConvention paymentConvention,
48  const QuantLib::DayCounter& dayCounter,
49  bool settlesAccrual,
50  bool paysAtDefaultTime,
51  const QuantLib::Date& protectionStart,
52  const QuantLib::Date& upfrontDate,
53  bool permanent);
54  };
55 
56 }
57 
58 #endif
CreditDefaultSwap(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, QuantLib::Protection::Side side, QuantLib::Real notional, QuantLib::Rate upfront, QuantLib::Rate spread, const boost::shared_ptr< QuantLib::Schedule > &schedule, QuantLib::BusinessDayConvention paymentConvention, const QuantLib::DayCounter &dayCounter, bool settlesAccrual, bool paysAtDefaultTime, const QuantLib::Date &protectionStart, const QuantLib::Date &upfrontDate, bool permanent)
Definition: baseinstruments.hpp:34
Definition: abcd.hpp:38
Definition: creditdefaultswap.hpp:38
Definition: abcd.hpp:30