Пример #1
0
void Processor::serialize(IvwSerializer& s) const {
    s.serialize("type", getClassIdentifier(), true);
    s.serialize("identifier", identifier_, true);

    s.serialize("InteractonHandlers", interactionHandlers_, "InteractionHandler");
    s.serialize("InPorts", inports_, "InPort");
    s.serialize("OutPorts", outports_, "OutPort");

    PropertyOwner::serialize(s);
    MetaDataOwner::serialize(s);
}
Пример #2
0
void PropertyOwner::serialize(IvwSerializer& s) const {
    std::vector<Property*> props;
    std::copy_if(properties_.begin(), properties_.end(), std::back_inserter(props), [](Property* p) {
        return p->getSerializationMode() != PropertySerializationMode::NONE;
    });
    s.serialize("Properties", props, "Property");
}
Пример #3
0
void Port::serialize(IvwSerializer& s) const {
    s.serialize("type", getClassIdentifier(), true);
    s.serialize("identifier", identifier_, true);
}
Пример #4
0
 virtual void serialize(IvwSerializer& s) const { s.serialize("classVariable", value_); }
Пример #5
0
void MouseEvent::serialize(IvwSerializer& s) const {
    InteractionEvent::serialize(s);
    s.serialize("button", button_);
    s.serialize("state", state_);
    s.serialize("wheelOrientation", wheelOrientation_);
}
Пример #6
0
void CompositeProperty::serialize(IvwSerializer& s) const{
    Property::serialize(s);
    PropertyOwner::serialize(s);
    s.serialize("collapsed", collapsed_);
}
Пример #7
0
void PropertySemantics::serialize(IvwSerializer& s) const {
    s.serialize("semantics", semantic_, true);
}
Пример #8
0
void TrackballAction::serialize(IvwSerializer& s) const {
    Action::serialize(s);
    s.serialize("action", name_);
}