25 #include "WOutputPropertyHandler.h"
30 m_protonData( protonData ),
31 m_properties( properties ),
32 m_dataUpdate( dataUpdate )
39 WPropGroup outputGroup =
m_properties->addPropertyGroup(
"Output",
"Configures the third output" );
40 m_energyDeposition = outputGroup->addProperty(
"Energy deposition",
"Enables the energy deposition output",
true, notifier );
41 m_eventID = outputGroup->addProperty(
"Event id",
"Enables the event id output",
false, notifier );
boost::function< void() > CallbackPtr
Function typedf for updating the data.
WPropBool m_eventID
Whether to send the eventID or not.
WPropBool getEnergyDeposition()
Getter.
WPropBool getEventID()
Getter.
WOutputPropertyHandler(WProtonData::SPtr protonData, WPropertyGroup::SPtr properties, WOutputPropertyHandler::CallbackPtr dataUpdate)
constructor
WOutputPropertyHandler::CallbackPtr m_dataUpdate
A function variable that reinitializes the WDataSets.
WPropBool m_energyDeposition
Whether to send the energy deposition or not.
void createProperties()
creates the group property and the subroperties.
WPropertyGroup::SPtr m_properties
A property variable that is generated by the WModul.
void updateProperties()
update current group property and the subproperties.
boost::function< void(std::shared_ptr< WPropertyBase >)> PropertyChangeNotifierType
Signal signature emitted during set operations.
std::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type
std::shared_ptr< WProtonData > SPtr
shared_ptr that points to itself