usage of typeobject #3587
-
by read dds doc, it can genarate by fastddsgen -typeobject, but I don't understand typeobject is for what. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I have seen HelloWorldExample and ContentFilteredTopicExample. |
Beta Was this translation helpful? Give feedback.
-
14.5. Dynamic Types Discovery and Endpoint Matching, |
Beta Was this translation helpful? Give feedback.
-
@xiayh1992 The type object is used internally when parsing the filter expression, to check it is semantically correct. A DynamicData is also used internally to perform the filtering without fully deserializing the payload. |
Beta Was this translation helpful? Give feedback.
This is not true.
TopicDataType
does not have all the information about theHelloWorld
data. It just knows how to do conversions between a serialized payload and aHelloWorld
object, but it does not provide methods to allow querying the type of a member given its name, or the offset of a field in the serialized payload.For the default SQL-like filter, having the TypeObject registered is a requirement, and it is documented as such in the documentation: "Different filter classes may impose different requirements on the related Topic, the expression, or the parameters. The default filter class, in particular, req…