Feature #194

Get ID from published data

Added by I. Lütkebohle about 13 years ago. Updated almost 13 years ago.

Status:ResolvedStart date:02/17/2011
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:C++
Target version:0.2

Description

Essentially, return the RSBEvent from publishData.


Related issues

Duplicated by Robotics Service Bus - Feature #207: Publish operation should return RSBEvent Rejected 02/22/2011

Associated revisions

Revision 8a9e478e
Added by J. Moringen almost 13 years ago

Method publish returns created event in src/rsb/Informer.h
fixes #194
  • src/rsb/Informer.h: all Informer::publish methods return the event
    after sending
  • test/rsb/UserLevelTest.cpp: added test case to check returned
    events; renamed test suite PublisherTest -> InformerTest

History

#1 Updated by J. Wienke almost 13 years ago

What is the use case for this?

#2 Updated by I. Lütkebohle almost 13 years ago

When referencing an event, I need an id, which is created when RSBEvent is instantiated. publishData creates the RSBEvent internally, so I can't get the id. Returning the event from publishData would provide this, and more.

#3 Updated by J. Wienke almost 13 years ago

  • Category set to C++
  • Target version set to 0.2

#4 Updated by J. Moringen almost 13 years ago

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

Applied in changeset r846.

Also available in: Atom PDF