[ObjectHandler-cvs] ObjectHandler/oh demo.hpp,NONE,1.1
Brought to you by:
ericehlers,
nando
From: Eric E. <eri...@us...> - 2006-12-03 14:35:07
|
Update of /cvsroot/objecthandler/ObjectHandler/oh In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27272/oh Added Files: demo.hpp Log Message: ohDemoObject() --- NEW FILE: demo.hpp --- /* Copyright (C) 2006 Eric Ehlers This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email qua...@li... The license is also available online at http://quantlib.org/html/license.html This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ #ifndef oh_demo_hpp #define oh_demo_hpp #include <oh/object.hpp> namespace ObjHandler { class DemoObject : public Object { public: DemoObject(const std::string& stringParam, const long &longParam) : stringParam_(stringParam), longParam_(longParam) {}; const std::string stringParam() { return stringParam_; } const std::string setStringParam(const std::string& stringParam) { stringParam_ = stringParam; return stringParam_; } private: std::string stringParam_; long longParam_; }; } #endif |