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.
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.
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