axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapHeaderWriter.java
Date Fri, 14 Nov 2003 12:01:38 GMT
susantha    2003/11/14 04:01:38

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c Tag:
                        CWrapperSupport WrapWriter.java
               c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp Tag:
                        CWrapperSupport WrapHeaderWriter.java
  Log:
  changed the commenting style of WSDL2Ws tool generated code to be ANCI C commenting style
  Ex : /* some comment */
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.4.2   +13 -13    ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/WrapWriter.java
  
  Index: WrapWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/WrapWriter.java,v
  retrieving revision 1.9.4.1
  retrieving revision 1.9.4.2
  diff -u -r1.9.4.1 -r1.9.4.2
  --- WrapWriter.java	14 Nov 2003 08:10:54 -0000	1.9.4.1
  +++ WrapWriter.java	14 Nov 2003 12:01:37 -0000	1.9.4.2
  @@ -95,10 +95,10 @@
   
   	protected void writeClassComment() throws WrapperFault {
   		try{
  -			writer.write("///////////////////////////////////////////////////////////////////////\n");

  -			writer.write("//This is the Wrapper implementation file genarated by WSDL2Ws tool\n");
  -			writer.write("//\n");
  -			writer.write("//////////////////////////////////////////////////////////////////////\n\n");
  +			writer.write("/*\n");	
  +			writer.write(" * This is the Wrapper implementation file genarated by WSDL2Ws tool\n");
  +			writer.write(" *\n");
  +			writer.write(" */\n\n");
   		}catch(IOException e){
   			throw new WrapperFault(e);
   		}
  @@ -109,12 +109,12 @@
   	 */
   	protected void writeMethods() throws WrapperFault {
   		try{
  -			writer.write("//implementation of BasicHandler interface\n");			
  +			writer.write("/*implementation of BasicHandler interface*/\n");			
   			writer.write("void AXISCALL OnFault(void*p, IMessageData *pMsg)\n{\n}\n\n");
   			writer.write("int AXISCALL Init(void*p)\n{\n\treturn SUCCESS;\n}\n\n");
   			writer.write("int AXISCALL Fini(void*p)\n{\n\treturn SUCCESS;\n}\n\n");
   			writeInvoke();
  -			writer.write("\n//Methods corresponding to the web service methods\n");
  +			writer.write("\n/*Methods corresponding to the web service methods*/\n");
   			MethodInfo minfo;
   			for (int i = 0; i < methods.size(); i++) {
   				minfo = (MethodInfo)methods.get(i);
  @@ -152,9 +152,9 @@
   	 * @throws IOException
   	 */
   	private void writeInvoke() throws IOException {
  -		writer.write("\n/////////////////////////////////////////////////////////////////\n");
  -		writer.write("// This method invokes the right service method \n");
  -		writer.write("//////////////////////////////////////////////////////////////////\n");
  +		writer.write("\n/*\n");
  +		writer.write(" * This method invokes the right service method \n");
  +		writer.write(" */\n");
   		writer.write("int AXISCALL Invoke(void*p, IMessageData *mc)\n{\n");
   		writer.write("\tIMessageDataX* pmcX = mc->__vfptr;\n");
   		writer.write("\tIWrapperSoapDeSerializer *pDZ = NULL;\n");
  @@ -216,7 +216,7 @@
   		ArrayList paramsB = new ArrayList(params);
   		Type type;
   
  -		writer.write("\n//forward declaration for the c method "+methodName+" \n");
  +		writer.write("\n/*forward declaration for the c method "+methodName+" */\n");
   		//TODO forward declaration writing logic should be changed when arrays come into picture
   		if (returntype == null){
   			writer.write("extern void "+methodName+"(");
  @@ -238,9 +238,9 @@
   			}
   		}
   		writer.write(");\n");
  -		writer.write("\n/////////////////////////////////////////////////////////////////\n");
  -		writer.write("// This method wrap the service method \n");
  -		writer.write("//////////////////////////////////////////////////////////////////\n");
  +		writer.write("\n/*\n");
  +		writer.write(" * This method wrap the service method \n");
  +		writer.write(" */\n");
   		//method signature
   		writer.write("int "+ methodName + CUtils.WRAPPER_METHOD_APPENDER+ "(IMessageData* mc)\n{\n");
   		writer.write("\tIMessageDataX* pmcX = mc->__vfptr;\n");
  
  
  
  No                   revision
  No                   revision
  1.5.4.1   +8 -8      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java
  
  Index: WrapHeaderWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapHeaderWriter.java,v
  retrieving revision 1.5
  retrieving revision 1.5.4.1
  diff -u -r1.5 -r1.5.4.1
  --- WrapHeaderWriter.java	22 Oct 2003 03:40:05 -0000	1.5
  +++ WrapHeaderWriter.java	14 Nov 2003 12:01:38 -0000	1.5.4.1
  @@ -89,11 +89,11 @@
   
   	protected void writeClassComment() throws WrapperFault {
   			try{
  -				writer.write("/////////////////////////////////////////////////////////////////////////////\n");
  -				writer.write("// This is the Service Class genarated by the tool WSDL2Ws\n");
  -				writer.write("//		"+classname+".h: interface for the "+classname+"class.\n");
  -				writer.write("//\n");
  -				writer.write("//////////////////////////////////////////////////////////////////////\n");
  +				writer.write("/*\n");
  +				writer.write(" * This is the Service Class genarated by the tool WSDL2Ws\n");
  +				writer.write(" *		"+classname+".h: interface for the "+classname+"class.\n");
  +				writer.write(" *\n");
  +				writer.write(" */\n");
   			}catch(IOException e){
   				throw new WrapperFault(e);
   			}
  @@ -126,12 +126,12 @@
   	 */
   	protected void writeMethods() throws WrapperFault {
   		try{
  -			writer.write("public://implementation of WrapperClassHandler interface\n");
  +			writer.write("public:/*implementation of WrapperClassHandler interface*/\n");
   			writer.write("\tint Invoke(IMessageData* mc);\n");
   			writer.write("\tvoid OnFault(IMessageData* pMsg);\n");
   			writer.write("\tint Init();\n");
   			writer.write("\tint Fini();\n");
  -			writer.write("private://Methods corresponding to the web service methods\n");
  +			writer.write("private:/*Methods corresponding to the web service methods*/\n");
   			MethodInfo minfo;
   			for (int i = 0; i < methods.size(); i++) {
   					 minfo = (MethodInfo)methods.get(i);
  @@ -161,7 +161,7 @@
   	protected String getExtendsPart(){return " : public WrapperClassHandler";}
   	protected void writeAttributes()throws WrapperFault{
   		try{
  -			writer.write("private:// Actual web service object\n\t"+CPPUtils.getWebServiceNameFromWrapperName(classname)+"
*pWs;\n");
  +			writer.write("private:/* Actual web service object*/\n\t"+CPPUtils.getWebServiceNameFromWrapperName(classname)+"
*pWs;\n");
   		}catch(IOException e){
   			throw new WrapperFault(e);
   		}			
  
  
  

Mime
View raw message