axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r383725 - in /webservices/axis/trunk/c/src/cbindings: BasicNodeC.cpp IAttributeC.cpp IHeaderBlockC.cpp ISoapFaultC.cpp
Date Tue, 07 Mar 2006 00:31:52 GMT
Author: nadiramra
Date: Mon Mar  6 16:31:51 2006
New Revision: 383725

URL: http://svn.apache.org/viewcvs?rev=383725&view=rev
Log:
C support fixes/enhancements.

Modified:
    webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp
    webservices/axis/trunk/c/src/cbindings/IAttributeC.cpp
    webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp
    webservices/axis/trunk/c/src/cbindings/ISoapFaultC.cpp

Modified: webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp?rev=383725&r1=383724&r2=383725&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/BasicNodeC.cpp Mon Mar  6 16:31:51 2006
@@ -22,116 +22,171 @@
 #include <axis/AxisUserAPI.h>
 #include <axis/BasicNode.h>
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetAttribute(AXISCHANDLE basicNode, AxiscChar *
pachPrefix, 
-	AxiscChar * pachURI, AxiscChar * pachLocalname) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getAttribute(pachPrefix,pachURI,pachLocalname);
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetAttribute(AXISCHANDLE basicNode, 
+                              AxiscChar * pachPrefix, 
+                              AxiscChar * pachURI, 
+                              AxiscChar * pachLocalname) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getAttribute(pachPrefix,pachURI,pachLocalname);
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetFirstAttribute(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getFirstAttribute();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetFirstAttribute(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getFirstAttribute();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetLastAttribute(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getLastAttribute();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetLastAttribute(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getLastAttribute();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetNextAttribute(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getNextAttribute();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetNextAttribute(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getNextAttribute();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetCurrentAttribute(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getCurrentAttribute();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetCurrentAttribute(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getCurrentAttribute();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateAttributeBasicNode(AXISCHANDLE basicNode,
const AxiscChar * localname, 
-	const AxiscChar * prefix, const AxiscChar * uri, const AxiscChar * value) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->createAttribute(localname,prefix,uri,value);
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateAttributeBasicNode(AXISCHANDLE basicNode, 
+                                          const AxiscChar * localname, 
+                                          const AxiscChar * prefix, 
+                                          const AxiscChar * uri, 
+                                          const AxiscChar * value) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->createAttribute(localname,prefix,uri,value);
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetLocalNameBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getLocalName();
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetLocalNameBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getLocalName();
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscGetNoOfChildrenBasicNode(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getNoOfChildren();
+AXISC_STORAGE_CLASS_INFO 
+int axiscGetNoOfChildrenBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getNoOfChildren();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetFirstChildBasicNodeBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getFirstChild();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetFirstChildBasicNodeBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getFirstChild();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetLastChildBasicNodeBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getLastChild();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetLastChildBasicNodeBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getLastChild();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetChildBasicNodeBasicNode(AXISCHANDLE basicNode,
int iChildPosition) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getChild(iChildPosition);
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetChildBasicNodeBasicNode(AXISCHANDLE basicNode, 
+                                            int iChildPosition) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getChild(iChildPosition);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscAddChildBasicNode(AXISCHANDLE basicNode, AXISCHANDLE pBasicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->addChild((BasicNode*)pBasicNode);
+AXISC_STORAGE_CLASS_INFO 
+int axiscAddChildBasicNode(AXISCHANDLE basicNode, 
+                           AXISCHANDLE pBasicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->addChild((BasicNode*)pBasicNode);
 }
 
-AXISC_STORAGE_CLASS_INFO AXISC_NODE_TYPE axiscGetNodeType(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return (AXISC_NODE_TYPE)bn->getNodeType();
+AXISC_STORAGE_CLASS_INFO 
+AXISC_NODE_TYPE axiscGetNodeType(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return (AXISC_NODE_TYPE)bn->getNodeType();
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetValueBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getValue();
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetValueBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getValue();
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetValueBasicNode(AXISCHANDLE basicNode, const AxiscChar
* pachValue) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->setValue(pachValue);
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetValueBasicNode(AXISCHANDLE basicNode, 
+                           const AxiscChar * pachValue) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->setValue(pachValue);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetURIBasicNode(AXISCHANDLE basicNode, const AxiscChar
* sURI) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->setURI(sURI);
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetURIBasicNode(AXISCHANDLE basicNode, 
+                         const AxiscChar * sURI) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->setURI(sURI);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetLocalNameBasicNode(AXISCHANDLE basicNode, const AxiscChar
* sLocalName) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->setLocalName(sLocalName);
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetLocalNameBasicNode(AXISCHANDLE basicNode, 
+                               const AxiscChar * sLocalName) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->setLocalName(sLocalName);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetPrefixBasicNode(AXISCHANDLE basicNode, const AxiscChar
* sPrefix) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->setPrefix(sPrefix);
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetPrefixBasicNode(AXISCHANDLE basicNode, 
+                            const AxiscChar * sPrefix) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->setPrefix(sPrefix);
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetURIBasicNode(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getURI();
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetURIBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getURI();
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetPrefixBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->getPrefix();
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetPrefixBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->getPrefix();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCloneBasicNodeBasicNode(AXISCHANDLE basicNode)
{
-	BasicNode *bn = (BasicNode*)basicNode;
-	return bn->clone();
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCloneBasicNodeBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    return bn->clone();
 }
 
-AXISC_STORAGE_CLASS_INFO void axiscDestroyBasicNode(AXISCHANDLE basicNode) {
-	BasicNode *bn = (BasicNode*)basicNode;
-	delete bn;
+AXISC_STORAGE_CLASS_INFO 
+void axiscDestroyBasicNode(AXISCHANDLE basicNode) 
+{
+    BasicNode *bn = (BasicNode*)basicNode;
+    delete bn;
 }
 
 }

Modified: webservices/axis/trunk/c/src/cbindings/IAttributeC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/IAttributeC.cpp?rev=383725&r1=383724&r2=383725&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/IAttributeC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/IAttributeC.cpp Mon Mar  6 16:31:51 2006
@@ -22,72 +22,94 @@
 #include <axis/GDefine.h>
 #include <axis/IAttribute.h>
 
-AXISC_STORAGE_CLASS_INFO void axiscDestroyIAttribute(AXISCHANDLE attribute) {
-	IAttribute *attr = (IAttribute*)attribute;
-	delete attr;
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetValueIAttribute(AXISCHANDLE attribute, const AxiscChar
* value) {
-	if(!value)
-	{
-		return AXIS_FAIL;
-	}
-	IAttribute *attr = (IAttribute*)attribute;
-	attr->setValue(value);
-	
-	return AXIS_SUCCESS;
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetUriIAttribute(AXISCHANDLE attribute, const AxiscChar
* uri) {
-	if(!uri)
-	{
-		return AXIS_FAIL;
-	}
-	IAttribute *attr = (IAttribute*)attribute;
-	attr->setURI(uri);
-	return AXIS_SUCCESS;
-}
-
-
-AXISC_STORAGE_CLASS_INFO int axiscSetPrefixIAttribute(AXISCHANDLE attribute, const AxiscChar
* prefix) {
-	if(!prefix)
-	{
-		return AXIS_FAIL;
-	}
-	
-	IAttribute *attr = (IAttribute*)attribute;
-	attr->setPrefix(prefix);
-	return AXIS_SUCCESS;
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetLocalNameIAttribute(AXISCHANDLE attribute, const AxiscChar
* localname) {
-	if(!localname)
-	{
-		return AXIS_FAIL;
-	}
-	IAttribute *attr = (IAttribute*)attribute;
-	attr->setLocalName(localname);
-	return AXIS_SUCCESS;
-}
-
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetValueIAttribute(AXISCHANDLE attribute)
{
-	IAttribute *attr = (IAttribute*)attribute;
-	return attr->getValue();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetUri(AXISCHANDLE attribute) {
-	IAttribute *attr = (IAttribute*)attribute;
-	return attr->getURI();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetPrefixIAttribute(AXISCHANDLE attribute)
{
-	IAttribute *attr = (IAttribute*)attribute;
-	return attr->getPrefix();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetLocalNameIAttribute(AXISCHANDLE attribute)
{
-	IAttribute *attr = (IAttribute*)attribute;
-	return attr->getLocalName();
+AXISC_STORAGE_CLASS_INFO 
+void axiscDestroyIAttribute(AXISCHANDLE attribute) 
+{
+    IAttribute *attr = (IAttribute*)attribute;
+    delete attr;
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetValueIAttribute(AXISCHANDLE attribute, 
+                            const AxiscChar * value) 
+{
+    if(!value)
+    {
+        return AXIS_FAIL;
+    }
+    IAttribute *attr = (IAttribute*)attribute;
+    attr->setValue(value);
+    
+    return AXIS_SUCCESS;
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetUriIAttribute(AXISCHANDLE attribute, 
+                          const AxiscChar * uri) 
+{
+    if(!uri)
+    {
+        return AXIS_FAIL;
+    }
+    IAttribute *attr = (IAttribute*)attribute;
+    attr->setURI(uri);
+    return AXIS_SUCCESS;
+}
+
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetPrefixIAttribute(AXISCHANDLE attribute, 
+                             const AxiscChar * prefix) 
+{
+    if(!prefix)
+    {
+        return AXIS_FAIL;
+    }
+    
+    IAttribute *attr = (IAttribute*)attribute;
+    attr->setPrefix(prefix);
+    return AXIS_SUCCESS;
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetLocalNameIAttribute(AXISCHANDLE attribute, 
+                                const AxiscChar * localname) 
+{
+    if(!localname)
+    {
+        return AXIS_FAIL;
+    }
+    IAttribute *attr = (IAttribute*)attribute;
+    attr->setLocalName(localname);
+    return AXIS_SUCCESS;
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetValueIAttribute(AXISCHANDLE attribute) 
+{
+    IAttribute *attr = (IAttribute*)attribute;
+    return attr->getValue();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetUri(AXISCHANDLE attribute) 
+{
+    IAttribute *attr = (IAttribute*)attribute;
+    return attr->getURI();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetPrefixIAttribute(AXISCHANDLE attribute) 
+{
+    IAttribute *attr = (IAttribute*)attribute;
+    return attr->getPrefix();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetLocalNameIAttribute(AXISCHANDLE attribute) 
+{
+    IAttribute *attr = (IAttribute*)attribute;
+    return attr->getLocalName();
 }
 
 }

Modified: webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp?rev=383725&r1=383724&r2=383725&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/IHeaderBlockC.cpp Mon Mar  6 16:31:51 2006
@@ -25,108 +25,158 @@
 #include <axis/SoapEnvVersions.h>
 #include <axis/IHeaderBlock.h>
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateNamespaceDeclINamespace(AXISCHANDLE headerBlock,
const AxiscChar * prefix, 
-	const AxiscChar * uri) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->createNamespaceDecl(prefix,uri));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateNamespaceDeclINamespace(AXISCHANDLE headerBlock, 
+                                               const AxiscChar * prefix, 
+                                               const AxiscChar * uri) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->createNamespaceDecl(prefix,uri));
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetFirstChildBasicNodeIHeaderBlock(AXISCHANDLE
headerBlock) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->getFirstChild());
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetFirstChildBasicNodeIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->getFirstChild());
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscGetNoOfChildrenIHeaderBlock(AXISCHANDLE headerBlock) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return hdr->getNoOfChildren();
+AXISC_STORAGE_CLASS_INFO 
+int axiscGetNoOfChildrenIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return hdr->getNoOfChildren();
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateChildBasicNode(AXISCHANDLE headerBlock, AXISC_NODE_TYPE
eNODE_TYPE, 
-	AxiscChar * pachLocalName, AxiscChar * pachPrefix, 
-	AxiscChar * pachUri, AxiscChar * pachValue) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->createChild((NODE_TYPE)eNODE_TYPE,pachLocalName,pachPrefix,pachUri,pachValue));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateChildBasicNode(AXISCHANDLE headerBlock, 
+                                      AXISC_NODE_TYPE eNODE_TYPE, 
+                                      AxiscChar * pachLocalName, 
+                                      AxiscChar * pachPrefix, 
+                                      AxiscChar * pachUri, 
+                                      AxiscChar * pachValue) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->createChild((NODE_TYPE)eNODE_TYPE,pachLocalName,pachPrefix,pachUri,pachValue));
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateImmediateChildBasicNode(AXISCHANDLE headerBlock,
AXISC_NODE_TYPE eNODE_TYPE, 
-	AxiscChar * pachLocalName, AxiscChar * pachPrefix, 
-	AxiscChar * pachUri, AxiscChar * pachValue) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->createImmediateChild((NODE_TYPE)eNODE_TYPE,pachLocalName,pachPrefix,pachUri,pachValue));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateImmediateChildBasicNode(AXISCHANDLE headerBlock, 
+                                               AXISC_NODE_TYPE eNODE_TYPE, 
+                                               AxiscChar * pachLocalName, 
+                                               AxiscChar * pachPrefix, 
+                                               AxiscChar * pachUri, 
+                                               AxiscChar * pachValue) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->createImmediateChild((NODE_TYPE)eNODE_TYPE,pachLocalName,pachPrefix,pachUri,pachValue));
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateStdAttribute(AXISCHANDLE headerBlock, AXISC_HEADER_BLOCK_STD_ATTR_TYPE
eStdAttrType, 
-	AXISC_SOAP_VERSION eSOAP_VERSION) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->createStdAttribute((HEADER_BLOCK_STD_ATTR_TYPE)eStdAttrType,
(SOAP_VERSION)eSOAP_VERSION));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateStdAttribute(AXISCHANDLE headerBlock, 
+                                    AXISC_HEADER_BLOCK_STD_ATTR_TYPE eStdAttrType, 
+                                    AXISC_SOAP_VERSION eSOAP_VERSION) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->createStdAttribute((HEADER_BLOCK_STD_ATTR_TYPE)eStdAttrType,
(SOAP_VERSION)eSOAP_VERSION));
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCreateAttributeIHeaderBlock(AXISCHANDLE headerBlock,
const AxiscChar * localname, 
-	const AxiscChar * prefix, const AxiscChar * uri, const AxiscChar * value) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->createAttribute(localname, prefix, uri, value));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCreateAttributeIHeaderBlock(AXISCHANDLE headerBlock, 
+                                             const AxiscChar * localname, 
+                                             const AxiscChar * prefix, 
+                                             const AxiscChar * uri, 
+                                             const AxiscChar * value) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->createAttribute(localname, prefix, uri, value));
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetAttributeValue(AXISCHANDLE headerBlock,
const AxiscChar * localname, 
-	const AxiscChar * prefix) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return hdr->getAttributeValue(localname, prefix);
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetAttributeValue(AXISCHANDLE headerBlock, 
+                                         const AxiscChar * localname, 
+                                         const AxiscChar * prefix) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return hdr->getAttributeValue(localname, prefix);
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetLastChildBasicNodeIHeaderBlock(AXISCHANDLE headerBlock)
{
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->getLastChild());
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetLastChildBasicNodeIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->getLastChild());
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscGetChildBasicNodeIHeaderBlock(AXISCHANDLE headerBlock,
int iChildPosition) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->getChild(iChildPosition));
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscGetChildBasicNodeIHeaderBlock(AXISCHANDLE headerBlock, 
+                                               int iChildPosition) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->getChild(iChildPosition));
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscAddChildIHeaderBlock(AXISCHANDLE headerBlock, AXISCHANDLE
pBasicNode) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return hdr->addChild((BasicNode*)pBasicNode);
+AXISC_STORAGE_CLASS_INFO 
+int axiscAddChildIHeaderBlock(AXISCHANDLE headerBlock, 
+                              AXISCHANDLE pBasicNode) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return hdr->addChild((BasicNode*)pBasicNode);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetLocalNameIHeaderBlock(AXISCHANDLE headerBlock, const
AxiscChar * localname) 
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetLocalNameIHeaderBlock(AXISCHANDLE headerBlock, 
+                                  const AxiscChar * localname) 
 {
-	if(0==localname)
-	{
-		return AXIS_FAIL;
-	}
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	hdr->setLocalName(localname);
-	return AXIS_SUCCESS;
+    if(0==localname)
+    {
+        return AXIS_FAIL;
+    }
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    hdr->setLocalName(localname);
+    return AXIS_SUCCESS;
 }
 
-AXISC_STORAGE_CLASS_INFO const AxiscChar * axiscGetLocalNameIHeaderBlock(AXISCHANDLE headerBlock)
{
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return hdr->getLocalName();
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar * axiscGetLocalNameIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return hdr->getLocalName();
 }
 
-AXISC_STORAGE_CLASS_INFO void axiscSetUriIHeaderBlock(AXISCHANDLE headerBlock, const AxiscChar
* uri) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	hdr->setURI(uri);
+AXISC_STORAGE_CLASS_INFO 
+void axiscSetUriIHeaderBlock(AXISCHANDLE headerBlock, 
+                             const AxiscChar * uri) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    hdr->setURI(uri);
 }
 
-AXISC_STORAGE_CLASS_INFO int axiscSetPrefixIHeaderBlock(AXISCHANDLE headerBlock, const AxiscChar
* prefix) {
-	if(0==prefix)
-	{
-		return AXIS_FAIL;
-	}
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	hdr->setPrefix(prefix);
-	return AXIS_SUCCESS;
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetPrefixIHeaderBlock(AXISCHANDLE headerBlock, 
+                               const AxiscChar * prefix) 
+{
+    if(0==prefix)
+    {
+        return AXIS_FAIL;
+    }
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    hdr->setPrefix(prefix);
+    return AXIS_SUCCESS;
 }
 
-AXISC_STORAGE_CLASS_INFO AXISCHANDLE axiscCloneHeaderBlockIHeaderBlock(AXISCHANDLE headerBlock)
{
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	return (AXISCHANDLE)(hdr->clone());
+AXISC_STORAGE_CLASS_INFO 
+AXISCHANDLE axiscCloneHeaderBlockIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    return (AXISCHANDLE)(hdr->clone());
 }
 
-AXISC_STORAGE_CLASS_INFO void axiscDestroyIHeaderBlock(AXISCHANDLE headerBlock) {
-	IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
-	delete hdr;
+AXISC_STORAGE_CLASS_INFO 
+void axiscDestroyIHeaderBlock(AXISCHANDLE headerBlock) 
+{
+    IHeaderBlock *hdr = (IHeaderBlock*)headerBlock;
+    delete hdr;
 }
 
 }

Modified: webservices/axis/trunk/c/src/cbindings/ISoapFaultC.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/cbindings/ISoapFaultC.cpp?rev=383725&r1=383724&r2=383725&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/ISoapFaultC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/ISoapFaultC.cpp Mon Mar  6 16:31:51 2006
@@ -24,66 +24,98 @@
 #include <axis/AxisUserAPI.h>
 #include <axis/ISoapFault.h>
 
-AXISC_STORAGE_CLASS_INFO void axiscDestroyISoapFault(AXISCHANDLE soapFault) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	delete sf;
-}
-
-AXISC_STORAGE_CLASS_INFO const AxiscChar* axiscGetCmplxFaultObjectName(AXISCHANDLE soapFault)
{
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getCmplxFaultObjectName();
-}
-
-AXISC_STORAGE_CLASS_INFO void * axiscGetCmplxFaultObject(AXISCHANDLE soapFault, void * pDZFunct,

-	void * pCreFunct, void * pDelFunct, const AxiscChar * pName, 
-	const AxiscChar * pNamespace) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getCmplxFaultObject(pDZFunct,pCreFunct,pDelFunct,pName,pNamespace);
-}
-
-AXISC_STORAGE_CLASS_INFO const AxisChar* axiscGetSimpleFaultDetail(AXISCHANDLE soapFault)
{
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getSimpleFaultDetail();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxisChar* axiscGetFaultcode(AXISCHANDLE soapFault) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getFaultcode();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxisChar* axiscGetFaultstring(AXISCHANDLE soapFault) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getFaultstring();
-}
-
-AXISC_STORAGE_CLASS_INFO const AxisChar* axiscGetFaultactor(AXISCHANDLE soapFault) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->getFaultactor();
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetFaultcode(AXISCHANDLE soapFault, const AxisChar*  sFaultcode)
{
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->setFaultcode(sFaultcode);
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetFaultstring(AXISCHANDLE soapFault, const AxisChar* 
sFaultstring) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->setFaultstring(sFaultstring);
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetFaultactor(AXISCHANDLE soapFault, const AxisChar*  sFaultactor)
{
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->setFaultactor(sFaultactor);
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetFaultDetail(AXISCHANDLE soapFault, const AxisChar* 
sFaultdetail) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->setFaultDetail(sFaultdetail);
-}
-
-AXISC_STORAGE_CLASS_INFO int axiscSetCmplxFaultObject(AXISCHANDLE soapFault, const void *
pCmplxFaultObject) {
-	ISoapFault *sf = (ISoapFault*)soapFault;
-	return sf->setCmplxFaultObject(pCmplxFaultObject);
+AXISC_STORAGE_CLASS_INFO 
+void axiscDestroyISoapFault(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    delete sf;
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxiscChar* axiscGetCmplxFaultObjectName(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getCmplxFaultObjectName();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+void * axiscGetCmplxFaultObject(AXISCHANDLE soapFault, 
+                                void * pDZFunct, 
+                                void * pCreFunct, 
+                                void * pDelFunct, 
+                                const AxiscChar * pName, 
+                                const AxiscChar * pNamespace) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getCmplxFaultObject(pDZFunct,pCreFunct,pDelFunct,pName,pNamespace);
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxisChar* axiscGetSimpleFaultDetail(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getSimpleFaultDetail();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxisChar* axiscGetFaultcode(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getFaultcode();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxisChar* axiscGetFaultstring(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getFaultstring();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+const AxisChar* axiscGetFaultactor(AXISCHANDLE soapFault) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->getFaultactor();
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetFaultcode(AXISCHANDLE soapFault, 
+                      const AxisChar*  sFaultcode) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->setFaultcode(sFaultcode);
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetFaultstring(AXISCHANDLE soapFault, 
+                        const AxisChar*  sFaultstring) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->setFaultstring(sFaultstring);
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetFaultactor(AXISCHANDLE soapFault, 
+                       const AxisChar*  sFaultactor) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->setFaultactor(sFaultactor);
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetFaultDetail(AXISCHANDLE soapFault, 
+                        const AxisChar*  sFaultdetail) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->setFaultDetail(sFaultdetail);
+}
+
+AXISC_STORAGE_CLASS_INFO 
+int axiscSetCmplxFaultObject(AXISCHANDLE soapFault, 
+                             const void * pCmplxFaultObject) 
+{
+    ISoapFault *sf = (ISoapFault*)soapFault;
+    return sf->setCmplxFaultObject(pCmplxFaultObject);
 }
 
 }



Mime
View raw message