RTT::EventService: getEvents returns no names

Hi,

I've noticed that the getEvents() function returns no names. It does
return getNames() of OperationFactory.

Sander.

RTT::EventService: getEvents returns no names

On Monday 14 May 2007 15:22:59 Vandenbroucke Sander wrote:
> Hi,
>
> I've noticed that the getEvents() function returns no names. It does
> return getNames() of OperationFactory.

This is indeed an API inconsistency. At this moment, there is no means to get
the list of events,commands or methods which were added 'without scripting
registration'. getNames() returns the names of these primitives which were
added for scripting. We could extend the API such that:

getMethods(), getCommands(), getEvents() returns the names off all the
instances (scripting or not) and getNames() keeps its current behaviour
(scripting only).

This should become a bug report.

Peter

[Bug 442] New: RTT::EventService: getEvents returns no names

For more infomation about this bug, visit
Summary: RTT::EventService: getEvents returns no names
Product: RTT
Version: rtt-trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

On Monday 14 May 2007 15:22:59 Vandenbroucke Sander wrote:
> Hi,
>
> I've noticed that the getEvents() function returns no names. It does
> return getNames() of OperationFactory.

This is indeed an API inconsistency. At this moment, there is no means to get
the list of events,commands or methods which were added 'without scripting
registration'. getNames() returns the names of these primitives which were
added for scripting. We could extend the API such that:

getMethods(), getCommands(), getEvents() returns the names off all the
instances (scripting or not) and getNames() keeps its current behaviour
(scripting only).

This should become a bug report.

--
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Bug 442] RTT::EventService: getEvents returns no names

For more infomation about this bug, visit

Peter Soetens
<peter [dot] soetens [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #1 from Peter Soetens
<peter [dot] soetens [..] ...> 2007-08-07 23:32:21 ---
(In reply to comment #0)