payoffs.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) 2006 Ferdinando Ametrano
5  Copyright (C) 2006 Eric Ehlers
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_payoffs_hpp
22 #define qla_payoffs_hpp
23 
24 #include <oh/libraryobject.hpp>
25 #include <ql/instruments/payoffs.hpp>
26 
27 namespace QuantLibAddin {
28 
29  OH_LIB_CLASS(Payoff, QuantLib::Payoff);
30 
31  OH_OBJ_CLASS(TypePayoff, Payoff);
32 
33  class StrikedTypePayoff : public TypePayoff {
34  public:
36  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
37  const std::string& payoffID,
38  const QuantLib::Option::Type& optionType,
39  const QuantLib::Real strike,
40  const QuantLib::Real thirdParameter,
41  bool permanent);
42  QuantLib::Real thirdParameter() const;
43  protected:
44  OH_OBJ_CTOR(StrikedTypePayoff, TypePayoff);
45  };
46 
47  OH_OBJ_CLASS(PlainVanillaPayoff, StrikedTypePayoff);
48 
49 }
50 
51 #endif
52 
OH_OBJ_CTOR(StrikedTypePayoff, TypePayoff)
OH_LIB_CLASS(AlphaForm, QuantLib::AlphaForm)
StrikedTypePayoff(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, const std::string &payoffID, const QuantLib::Option::Type &optionType, const QuantLib::Real strike, const QuantLib::Real thirdParameter, bool permanent)
Definition: payoffs.hpp:33
OH_OBJ_CLASS(OneAssetOption, Instrument)
Definition: abcd.hpp:38
QuantLib::Real thirdParameter() const