You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polymorphic data members have a "{member}_as_kdsoap_value()" function, which lets you get the raw KDSoapValue that was received. If it was actually a derived type, you have to deserialize it yourself.
I propose automatically adding a helper function for each polymorphic data member, that looks like:
template
T dataMemberDeserializedAs() const {
T t;
t.deserialize(dataMember_as_kdsoap_value());
return t;
}
I would have implemented this myself. However, I'm couldn't see how to create template functions using libKODE.
The text was updated successfully, but these errors were encountered:
BTW libkode upstream is https://github.com/cornelius/kode but unfortunately there are a number of commits on each side that didn't get merged into the other, so they have diverged quite a bit over time.
If you don't want to get into that, let's say I take care of syncing the two libkodes, and you can implement this in kdsoap's copy (without being blocked by the syncing).
Polymorphic data members have a "{member}_as_kdsoap_value()" function, which lets you get the raw KDSoapValue that was received. If it was actually a derived type, you have to deserialize it yourself.
I propose automatically adding a helper function for each polymorphic data member, that looks like:
template
T dataMemberDeserializedAs() const {
T t;
t.deserialize(dataMember_as_kdsoap_value());
return t;
}
I would have implemented this myself. However, I'm couldn't see how to create template functions using libKODE.
The text was updated successfully, but these errors were encountered: