Update of /cvsroot/objecthandler/ObjectHandler/gensrc/stubs
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14253/gensrc/stubs
Added Files:
stub.copyright stub.excel.exports stub.excel.includes
stub.excel.register stub.excel.unregister
Log Message:
autogenerate ObjectHandler code
--- NEW FILE: stub.excel.exports ---
#ifndef ohxl_export_hpp
#define ohxl_export_hpp
%s
#endif
--- NEW FILE: stub.excel.register ---
#include <ohxl/register.hpp>
void ohRegisterFunctions(const XLOPER &xDll) {
%(xlregister)s
}
--- NEW FILE: stub.excel.unregister ---
#include <ohxl/unregister.hpp>
void ohUnregisterFunctions(const XLOPER &xDll) {
// Unregister each function. Due to a bug in Excel's C API this is a
// two-step process. Thanks to Laurent Longre for discovering the
// workaround implemented here.
XLOPER xlRegID;
%(xlunregister)s
}
--- NEW FILE: stub.copyright ---
/*
Copyright (C) 2004, 2005 Ferdinando Ametrano
Copyright (C) 2004, 2005, 2006 Eric Ehlers
Copyright (C) 2005, 2006 Plamen Neykov
Copyright (C) 2004 StatPro Italia srl
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.
*/
--- NEW FILE: stub.excel.includes ---
#include <oh/utilities.hpp>
#include <oh/exception.hpp>
#include <ohxl/conversions.hpp>
#include <ohxl/functioncall.hpp>
#include <sstream>
#define XLL_DEC extern "C"
// FIXME some temporary workarounds for shortcomings in gensrc
#define SET_SESSION_ID
namespace ObjHandler {
long dependsOn() {
static std::map < std::string, long > iterators;
return iterators[ObjHandler::FunctionCall::instance().getAddressString()]++;
}
}
|