/*************************************************************************** GenClientMethod.h - generate class with client methods ------------------- begin : Thu Juk 19 2007 copyright : (C) 2002-2007 by Ewald Arnold email : ulxmlrpcpp@ewald-arnold.de $Id: GenClientFunction.h 1164 2010-01-06 10:03:51Z ewald-arnold $ ***************************************************************************/ /************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * * 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 * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * ***************************************************************************/ #ifndef GENCLIENTFUNCTION_H #define GENCLIENTFUNCTION_H #include #include "GenerateMethod.h" class GenerateClientFunctions : public GenerateMethod { public: GenerateClientFunctions(const std::vector &methods); void generate(const std::string &destdir, const std::string &name); private: void generate_H(const std::string &destdir, const std::string &name); void generate_CPP(const std::string &destdir, const std::string &name); void generate_CPP_USER(const std::string &destdir, const std::string &name); void generateHeaderMethods(std::ostream & h_file, const std::string &name); void generateSourceMethods(const std::string &destdir, std::ostream & cpp_file, const std::string &name); private: std::vector theMethods; }; #endif // GENCLIENTFUNCTION_H