[wsf-c-dev] [C++] How should this be implimented in C++?
Samisa Abeysinghe
samisa at wso2.com
Thu Oct 18 18:51:44 PDT 2007
Dimuthu Gamage wrote:
> Hi Senaka,
>
> Here you can follow the approach in the Java API,
>
> There class hierarchy is
>
> interface org.apache.axiom.om.OMNode
>
> * interface org.apache.axiom.om.OMComment
> * interface org.apache.axiom.om.OMDocType
> * interface org.apache.axiom.om.OMElement (also extends
> org.apache.axiom.om.OMContainer)
> * interface org.apache.axiom.om.OMProcessingInstruction
> * interface org.apache.axiom.om.OMText
>
> So the C++ users never need to really deal with OMNode directly like
> it happened to axis2/c users(to traverse node), rather they will work
> directly with the subclasses since they have all the node functions as
> well (From inheritance). Then there won't be any requirement to return
> the data element, so the function you mentioned is not required for C++.
+1. That is the ideal solution.
Samisa...
--
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP"
More information about the Wsf-c-dev
mailing list