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

TranslationUnit.h

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

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