Skip to content

Polymorphic helper function #169

@ryanenzo

Description

@ryanenzo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions