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 ro...@apache.org on 2004/11/27 07:09:20 UTC
cvs commit: ws-axis/c/src/common MessageData.h MessageData.cpp
roshan 2004/11/26 22:09:20
Modified: c/include/axis IMessageData.hpp
c/src/common MessageData.h MessageData.cpp
Log:
changes for JIRA fixes
Revision Changes Path
1.2 +3 -1 ws-axis/c/include/axis/IMessageData.hpp
Index: IMessageData.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/include/axis/IMessageData.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IMessageData.hpp 23 Nov 2004 11:11:11 -0000 1.1
+++ IMessageData.hpp 27 Nov 2004 06:09:19 -0000 1.2
@@ -43,9 +43,11 @@
private:
virtual void getAdminUtils(IAdminUtils** pIAdminUtils)=0;
public:
- virtual int setProperty(AxisChar* pachName, const AxisChar* pachValue)=0;
+ virtual int setProperty(AxisChar* pachName, const AxisChar* pachValue)=0;
virtual int setProperty(AxisChar* pachName, const void* pachValue, int len)=0;
+ virtual void setComplexProperty(AxisChar* pachName, void* pachValue, int iObjectSize)=0;
virtual const void* getProperty(AxisChar* sName)=0;
+ virtual void* getComplexProperty(AxisChar* pachName)=0;
virtual const AxisChar* AXISCALL getOperationName()=0;
virtual void AXISCALL getSoapSerializer(IWrapperSoapSerializer** pIWSS)=0;
virtual void AXISCALL getSoapDeSerializer
1.19 +4 -1 ws-axis/c/src/common/MessageData.h
Index: MessageData.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/common/MessageData.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- MessageData.h 23 Nov 2004 17:21:02 -0000 1.18
+++ MessageData.h 27 Nov 2004 06:09:20 -0000 1.19
@@ -50,9 +50,11 @@
private:
void getAdminUtils(IAdminUtils** pIAdminUtils);
public:
- const void* getProperty(AxisChar* pachName);
+ const void* getProperty(AxisChar* pachName);
+ void* getComplexProperty(AxisChar* pachName);
int setProperty(AxisChar* pachName, const AxisChar* pachValue);
int setProperty(AxisChar* pachName, const void* pachValue, int len);
+ void setComplexProperty(AxisChar* pachName, void* pachValue, int iObjectSize);
void setOperationName(const AxisChar* pchOperation)
{m_sOperationName = pchOperation;};
void getSoapDeSerializer
@@ -83,6 +85,7 @@
bool m_bPastPivotState;
map <AxisChar*, AxisChar*, ltstr> m_Properties;
static const AxisChar* m_pachBlankPropertyValue;
+ map <AxisChar*, void*, ltstr> m_ComplexProperties;
};
AXIS_CPP_NAMESPACE_END
1.30 +20 -0 ws-axis/c/src/common/MessageData.cpp
Index: MessageData.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/common/MessageData.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- MessageData.cpp 9 Nov 2004 15:55:25 -0000 1.29
+++ MessageData.cpp 27 Nov 2004 06:09:20 -0000 1.30
@@ -160,6 +160,16 @@
return AXIS_SUCCESS;
}
+void MessageData::setComplexProperty(AxisChar* pachName, void* pValue, int iObjectSize)
+{
+ AxisChar* pachTmpName = new AxisChar[strlen (pachName) + 1];
+ strcpy (pachTmpName, pachName);
+ void* pchTmpObject = malloc(iObjectSize);
+ pchTmpObject = pValue;
+
+ m_ComplexProperties[pachTmpName] = pchTmpObject;
+}
+
/*
* The method caller has to check whether the returned string is empty or
* not. If it is empty then the idea is that the property is not
@@ -173,6 +183,16 @@
}
return m_pachBlankPropertyValue;
+}
+
+void* MessageData::getComplexProperty(AxisChar* pachName)
+{
+ if (m_ComplexProperties.find (pachName) != m_ComplexProperties.end ())
+ {
+ return m_ComplexProperties[pachName];
+ }
+
+ return NULL;
}
void MessageData::getAdminUtils (IAdminUtils** pIAdminUtils)