Bug #2039

Updated by J. Wienke over 9 years ago

The PayloadFormatter doesn't find the different configured PayloadFormatters anymore,
because "unknown" types get converted to "bytearray". RST types - if convertes are registered -
are converted to an rst.* type. Hence, the type will never match "pb-message" nor the
other registered formatters.

<pre>


PayloadFormatterFactory::PayloadFormatterFactory() {
this->register_("std::string",
&StringPayloadFormatter::create);
this->register_("bytes",
&BytesPayloadFormatter::create);
this->register_("pb-message",
&ProtocolBufferPayloadFormatter::create);

this->register_(rsc::runtime::typeName<rsb::EventsByScopeMap>(), &EventsByScopeMapFormatter::create);
}
</pre>

Back