Bug #1152

InformerBase doesn't allow to publish polymorphic data

Added by R. Haschke over 11 years ago. Updated over 11 years ago.

Status:RejectedStart date:08/29/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:C++
Target version:-

Description

I thought it is possible, to send different data types through the same channel. However, I get this error (also using InformerBase):

terminate called after throwing an instance of 'std::invalid_argument'
what(): Specified event type rsb::xml::XOPData does not match informer type unused.
Aborted (core dumped)

Because the receiving side has to deal with polymorphic types anyway (due to the hierarchical structure of scopes), it would make sense to allow polymorphic sending as well.

Associated revisions

Revision 32559ccf
Added by J. Moringen over 11 years ago

Added polymorphic informer issue in troubleshooting.rst
refs #1152
  • troubleshooting.rst: added an issue stating the problem and solution
    regarding polymorphic informers in C++

Revision 20f6d6bc
Added by J. Moringen over 11 years ago

Added polymorphic informer issue in troubleshooting.rst
refs #1152, refs #1139
  • troubleshooting.rst: added an issue stating the problem and solution
    regarding polymorphic informers in C++

History

#1 Updated by R. Haschke over 11 years ago

  • Status changed from New to Rejected
  • % Done changed from 0 to 100

I figured out, that I have to use rsb::InformerBase specifying an empty type string.
This info was quite hidden in the source code...

#2 Updated by J. Moringen over 11 years ago

  • % Done changed from 100 to 0

See also source:rsb-cpp|examples/informer/anyInformer.cpp.

I also updated the proposed troubleshooting section of the manual: source:rsb-manual|troubleshooting.rst@20f6d6bc#L215.

#3 Updated by J. Moringen over 11 years ago

  • Subject changed from InformerBase is doesn't allow to publish polymorphic data to InformerBase doesn't allow to publish polymorphic data
  • Category changed from Specification to C++

Also available in: Atom PDF