Menu

#4 Add new option to wsdl2h.exe for using pointers or not

open
None
5
2005-06-22
2005-06-01
Dashut
No

What I mean is: by default, most classes created are
created with pointers to other classes (if such a case
exists).
Since I don't want to use a pointer to another class, I
manually remove the pointer sign (*), and only then run
soapcpp2.exe to create the stubs I want.

For example. Say I have type innerElement in the wsdl
file, and MyElement has innerElement as one of it's
elements, then after running wsdl2h.exe on this wsdl
file, the created classes will look like this:

class MyElement
{
innerElement* innerElem;
}

But what I wanted is:
class MyElement
{
innerElement innerElem;
}

Without the pointer!
Can you add a "switch" in wsdl2h.exe so that I can
choose to create classes with or without pointers?

Waiting, Dashut.

Discussion

  • Robert van Engelen

    • assigned_to: nobody --> engelen
     
  • Nobody/Anonymous

    Logged In: NO

    I second this, I also manually
    remove pointers, especially in stuff like std::vector< ns_someName* > *pvector,
    which forces me to handle memory explicitly when adding data to the vector.

     
  • Bruce Edge

    Bruce Edge - 2007-08-14

    Logged In: YES
    user_id=1251183
    Originator: NO

    I 3rd this. I'm interfacing to kernel drivers and I have to have everything in a contiguous address map. The nested pointer to struct thing does not work at all for kernel -> user space communication.

    Thanks, Bruce

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.