Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

Method.h

00001 /* -*- C++ -*- */
00002 
00003 /*
00004  * The Apache Software License, Version 1.1
00005  *
00006  *
00007  * Copyright (c) 2002 The Apache Software Foundation.  All rights
00008  * reserved.
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  *
00014  * 1. Redistributions of source code must retain the above copyright
00015  *    notice, this list of conditions and the following disclaimer.
00016  *
00017  * 2. Redistributions in binary form must reproduce the above copyright
00018  *    notice, this list of conditions and the following disclaimer in
00019  *    the documentation and/or other materials provided with the
00020  *    distribution.
00021  *
00022  * 3. The end-user documentation included with the redistribution,
00023  *    if any, must include the following acknowledgment:
00024  *       "This product includes software developed by the
00025  *        Apache Software Foundation (http://www.apache.org/)."
00026  *    Alternately, this acknowledgment may appear in the software itself,
00027 
00028  *    if and wherever such third-party acknowledgments normally appear.
00029  *
00030  * 4. The names "SOAP" and "Apache Software Foundation" must
00031  *    not be used to endorse or promote products derived from this
00032  *    software without prior written permission. For written
00033  *    permission, please contact apache@apache.org.
00034  *
00035  * 5. Products derived from this software may not be called "Apache",
00036  *    nor may "Apache" appear in their name, without prior written
00037  *    permission of the Apache Software Foundation.
00038  *
00039  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00040  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00041  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00042  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00043  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00044  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00045  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00046  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00047  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00048  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00049  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00050  * SUCH DAMAGE.
00051  * ====================================================================
00052  *
00053  * This software consists of voluntary contributions made by many
00054  * individuals on behalf of the Apache Software Foundation.  For more
00055  * information on the Apache Software Foundation, please see
00056  * <http://www.apache.org/>.
00057  *
00058  *
00059  *
00060  *
00061  * @author Susantha Kumara (skumara@virtusa.com)
00062  *
00063  */
00064 // Method.h: interface for the Method class.
00065 //
00067 
00068 #if !defined(AFX_METHOD_H__87FCCB11_EF9C_409E_81F6_99F054B5E609__INCLUDED_)
00069 #define AFX_METHOD_H__87FCCB11_EF9C_409E_81F6_99F054B5E609__INCLUDED_
00070 
00071 #include "Variable.h"
00072 #include "File.h"
00073 #include <list>
00074 #include <string>
00075 
00076 using namespace std;
00077 
00078 class Method  
00079 {
00080 public:
00081         int GenerateOperationInBinding(File &file, string &sServiceName, int nBinding, int nStyle, string &sURI);
00082         int GenerateWSDLOperationInPortType(File& file);
00083         int GenerateWSDLMessages(File &file);
00084         int GenerateMethodImpl(string& sClassName, File& file);
00085         string& GetName();
00086         int GenerateMethodDef(File &file);
00087         void SetQualification(unsigned char sQualifier);
00088         void SetMethodName(string& sName);
00089         void AddParameter(Variable* pVar);
00090         void AddReturnType(Variable* pVar);
00091         Method();
00092         virtual ~Method();
00093 private:
00094         string m_AuxStr;
00095         Variable* m_pReturnType;
00096         string m_Name;
00097         list<Variable*> m_Params;
00098         unsigned char m_Qualifier; //private=1/protected=2/public=0/static=4/const=8/virtual=16
00099 };
00100 
00101 #endif // !defined(AFX_METHOD_H__87FCCB11_EF9C_409E_81F6_99F054B5E609__INCLUDED_)

Generated on Fri Apr 9 12:21:29 2004 for axiscpp by doxygen1.2.18