00001 /*************************************************************************** 00002 ulxr_signature.h - handle method signatures 00003 ------------------- 00004 begin : Sat Mar 23 2002 00005 copyright : (C) 2002-2007 by Ewald Arnold 00006 email : ulxmlrpcpp@ewald-arnold.de 00007 00008 $Id: ulxr_signature.h 940 2006-12-30 18:22:05Z ewald-arnold $ 00009 00010 ***************************************************************************/ 00011 00012 /************************************************************************** 00013 * 00014 * This program is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License as 00016 * published by the Free Software Foundation; either version 2 of the License, 00017 * or (at your option) any later version. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program; if not, write to the Free Software 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00027 * 00028 ***************************************************************************/ 00029 00030 #ifndef ULXR_SIGNATURE_H 00031 #define ULXR_SIGNATURE_H 00032 00033 #include <ulxmlrpcpp/ulxmlrpcpp.h> // always first header 00034 00035 00036 namespace ulxr { 00037 00038 00039 class Value; 00040 class ValueBase; 00041 class Void; 00042 00043 00058 class ULXR_API_DECL0 Signature 00059 { 00060 public: 00061 00064 Signature(); 00065 00069 Signature(const CppString &s); 00070 00074 Signature(const ValueBase &v); 00075 00080 Signature(const Void &v); 00081 00085 Signature& addParam(const CppString &s); 00086 00090 Signature& addParam(const Value &v); 00091 00095 Signature& operator<<(const CppString &s); 00096 00100 Signature& operator<<(const Value &v); 00101 00105 CppString getString() const; 00106 00107 private: 00108 00109 CppString sig; 00110 }; 00111 00112 00113 } // namespace ulxr 00114 00115 00116 #endif // ULXR_SIGNATURE_H 00117