/* * Copyright (c) 2001, DecisionSoft Limited All rights reserved. * Please see LICENSE.TXT for more information. */ /* Factory template class */ #ifndef _FUNCFACTORYTEMPLATE_HPP #define _FUNCFACTORYTEMPLATE_HPP #include ///Macro used to facilitate the creation of functions template class FuncFactoryTemplate : public FuncFactory { public: FuncFactoryTemplate() { } virtual DataItem *createInstance(const VectorOfDataItems &args, XPath2MemoryManager* memMgr) const { return new (memMgr) TYPE(args, memMgr); } virtual const XMLCh *getName() const { return TYPE::name; } virtual const XMLCh *getURI() const { return TYPE::XMLChFunctionURI; } }; #endif