Problem 1580 - G4GenericMessenger does not allow for setting broadcast/flushing properties of underlying UI commands
Summary: G4GenericMessenger does not allow for setting broadcast/flushing properties o...
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: intercoms (show other problems)
Version: 10.0
Hardware: All All
: P5 trivial
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2014-03-02 02:22 CET by Andrea Dotti
Modified: 2014-03-04 18:20 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Andrea Dotti 2014-03-02 02:22:27 CET
If UI commands are created via G4GenericMessenger there is no obvious way to set the new broadcast and flushing properties of the underlying UI commands.

G4GenericMessenger::Comamnd implements the proxy pattern around G4UIcomamnd and no SetToBeBroadcast and SetToBeFlushed methods are available.

To tell the truth since Command is a C struct (!) one can always do:

G4GenericMessenger::Command.command->SetToBeBroadcast(...) but this is clearly less than optimal.

Andrea
Comment 1 asai 2014-03-04 18:20:14 CET
Fixed.