Hello:
This is a bit of a design question. All RTI examples I saw so far use the one-topic->one-type methodology. I suspect I can reuse the type on a different topics.
However, can I setup one topic and use it to publish more than one type?
Hello:
This is a bit of a design question. All RTI examples I saw so far use the one-topic->one-type methodology. I suspect I can reuse the type on a different topics.
However, can I setup one topic and use it to publish more than one type?
You can publish more than one type on a Topic, with the following understandings:
1) A datawriter writes one specific type. A datareader reads one specific type.
2) Any given datawriter or datareader, attached to that topic, has to be using Types which are inherited from the same base class (ShapeType<->ShapeTypeExtended, ShapeTypeExtended<->ShapeType, ShapeType<->ShapeType, ShapeTypeExtended<->ShapeTypeExtended)
What happens when a reader receives something on the Topic written by a writer with a different sub-class of the parent is well-defined.
See the Extensible Types for DDS standard.
For the most part, "Wild west" topics aren't allowed, if a writer says "FooType" on topic "Fnorb", and reader says "BarType" on "Fnorb", they won't see each other.