cmsmarket.hpp
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2007 Ferdinando Ametrano
4  Copyright (C) 2006 Giorgio Facchinetti
5 
6  This file is part of QuantLib, a free-software/open-source library
7  for financial quantitative analysts and developers - http://quantlib.org/
8 
9  QuantLib is free software: you can redistribute it and/or modify it
10  under the terms of the QuantLib license. You should have received a
11  copy of the license along with this program; if not, please email
12  <quantlib-dev@lists.sf.net>. The license is also available online at
13  <http://quantlib.org/license.shtml>.
14 
15  This program is distributed in the hope that it will be useful, but WITHOUT
16  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  FOR A PARTICULAR PURPOSE. See the license for more details.
18 */
19 
20 #ifndef qla_cmsmarket_hpp
21 #define qla_cmsmarket_hpp
22 
23 #include <oh/libraryobject.hpp>
24 #include <oh/property.hpp>
25 #include <ql/termstructures/volatility/swaption/cmsmarket.hpp>
26 
27 namespace QuantLibAddin {
28 
29  std::vector<std::vector<ObjectHandler::property_t> > browseCmsMarket(
30  const QuantLib::Matrix& cmsMarket);
31 
32  class CmsMarket: public ObjectHandler::LibraryObject<QuantLib::CmsMarket>{
33  public:
34  CmsMarket(
35  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
36  const std::vector<QuantLib::Period>& expiries,
37  const std::vector<boost::shared_ptr<QuantLib::SwapIndex> >& swapIndices,
38  const boost::shared_ptr<QuantLib::IborIndex>& iborIndex,
39  const std::vector<std::vector<QuantLib::Handle<QuantLib::Quote> > >& bidAskSpreads,
40  const std::vector<boost::shared_ptr<QuantLib::CmsCouponPricer> >& pricers,
42  bool permanent);
43 
44  std::vector<std::vector<ObjectHandler::property_t> > getCmsMarket();
45 
46  };
47 
48 }
49 
50 #endif
std::vector< std::vector< ObjectHandler::property_t > > getCmsMarket()
Definition: cmsmarket.hpp:32
std::vector< std::vector< ObjectHandler::property_t > > browseCmsMarket(const QuantLib::Matrix &cmsMarket)
CmsMarket(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, const std::vector< QuantLib::Period > &expiries, const std::vector< boost::shared_ptr< QuantLib::SwapIndex > > &swapIndices, const boost::shared_ptr< QuantLib::IborIndex > &iborIndex, const std::vector< std::vector< QuantLib::Handle< QuantLib::Quote > > > &bidAskSpreads, const std::vector< boost::shared_ptr< QuantLib::CmsCouponPricer > > &pricers, const QuantLib::Handle< QuantLib::YieldTermStructure > &discountingTS, bool permanent)
Definition: abcd.hpp:38