You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/01/03 07:06:21 UTC
cvs commit: ws-axis/c/src/soap HeaderBlock.cpp HeaderBlock.h
samisa 2005/01/02 22:06:21
Modified: c/include/axis IHeaderBlock.hpp
c/src/soap HeaderBlock.cpp HeaderBlock.h
Log:
Removed const from BasicNode accessors to enable mutators being called on returned object pointer
Revision Changes Path
1.4 +3 -18 ws-axis/c/include/axis/IHeaderBlock.hpp
Index: IHeaderBlock.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/include/axis/IHeaderBlock.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IHeaderBlock.hpp 17 Dec 2004 11:49:44 -0000 1.3
+++ IHeaderBlock.hpp 3 Jan 2005 06:06:21 -0000 1.4
@@ -35,27 +35,12 @@
* @class IHeaderBlock
* @brief interface for the IHeaderBlock class.
*
- *
* @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
* @author Samisa Abeysinghe (sabeysinghe@virtusa.com)
* @author Susantha Kumara (susantha@opensource.lk, skumara@virtusa.com)
*
*/
-/*
- * Revision 1.1 2004/05/26 samisa
- * Added copy constructor and clone
- */
-
-/*
- * Revision 1.2 2004/06/13 roshan
- * Added doxygen comments to help autobuild API docs
- */
-
-/*
- * Revision 1.12 2004/06/13 susantha
- * Added support for writing C web services and handlers
- */
class IHeaderBlock
{
@@ -80,7 +65,7 @@
virtual IAttribute* createNamespaceDecl(const AxisChar *prefix,
const AxisChar *uri)=0;
- virtual const BasicNode* getFirstChild() =0;
+ virtual BasicNode* getFirstChild() =0;
/**
* Returns the number of child elements of this HeaderBlock.
*
@@ -250,7 +235,7 @@
* @return The last child element is returned if it exists.
* If the child element doesn't exsist this method returns NULL.
*/
- virtual const BasicNode* getLastChild() = 0;
+ virtual BasicNode* getLastChild() = 0;
/**
* Returns the child element at the given postion.
@@ -260,7 +245,7 @@
* @return The required child element is returned if it exists.
* If the child element doesn't exsist this method returns NULL.
*/
- virtual const BasicNode* getChild(int iChildPosition) = 0;
+ virtual BasicNode* getChild(int iChildPosition) = 0;
/**
* Adds a child node to the Header Block.
1.40 +3 -3 ws-axis/c/src/soap/HeaderBlock.cpp
Index: HeaderBlock.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- HeaderBlock.cpp 17 Dec 2004 11:49:45 -0000 1.39
+++ HeaderBlock.cpp 3 Jan 2005 06:06:21 -0000 1.40
@@ -375,7 +375,7 @@
return AXIS_SUCCESS;
}
-const BasicNode* HeaderBlock::getLastChild()
+BasicNode* HeaderBlock::getLastChild()
{
list<BasicNode*>::reverse_iterator ritCurrBasicNode= m_children.rbegin();
@@ -387,7 +387,7 @@
return NULL;
}
-const BasicNode* HeaderBlock::getChild(int iChildPosition)
+BasicNode* HeaderBlock::getChild(int iChildPosition)
{
if (iChildPosition > iNoOFChildren)
{
@@ -718,7 +718,7 @@
return iNoOFChildren;
}
-const BasicNode* HeaderBlock::getFirstChild()
+BasicNode* HeaderBlock::getFirstChild()
{
list<BasicNode*>::iterator itCurrBasicNode= m_children.begin();
1.22 +3 -17 ws-axis/c/src/soap/HeaderBlock.h
Index: HeaderBlock.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- HeaderBlock.h 17 Dec 2004 11:49:45 -0000 1.21
+++ HeaderBlock.h 3 Jan 2005 06:06:21 -0000 1.22
@@ -52,26 +52,12 @@
* - role attribute information item
* - mustUnderstand attribute information item
* - relay attribute information item
- *
- *
*
* @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
* @author Samisa Abeysinghe (sabeysinghe@virtusa.com)
*
*/
-/*
- * Revision 1.1 2004/05/26 samisa
- * Added copy constructor and clone
- */
-
-/*
- * Revision 1.2 2004/06/13 roshan
- * Added doxygen comments to help autobuild API docs
- */
-
-
-
class HeaderBlock : public IHeaderBlock
{
friend class SoapHeader;
@@ -119,7 +105,7 @@
IAttribute* createNamespaceDecl(const AxisChar *prefix,
const AxisChar *uri);
- const BasicNode* getFirstChild();
+ BasicNode* getFirstChild();
/**
* Returns the number of child elements of this HeaderBlock.
@@ -306,7 +292,7 @@
* @return The last child element is returned if it exists.
* If the child element doesn't exsist this method returns NULL.
*/
- const BasicNode* getLastChild();
+ BasicNode* getLastChild();
/**
* Returns the child element at the given postion.
@@ -317,7 +303,7 @@
* @return The required child element is returned if it exists.
* If the child element doesn't exsist this method returns NULL.
*/
- const BasicNode* getChild(int iChildPosition);
+ BasicNode* getChild(int iChildPosition);
/**
* Adds a child node to the Header Block.