28 class ModuleEventData :
public SharedData
32 ModuleEventData(ModuleEvent::Type type, Module* module)
33 : type(type), module(module)
38 ModuleEventData(
const ModuleEventData& other)
39 : SharedData(other), type(other.type), module(other.module)
44 const ModuleEvent::Type type;
50 ModuleEventData& operator=(
const ModuleEventData&);
53 ModuleEvent::ModuleEvent()
70 : d(new ModuleEventData(type, module))
106 default:
return os <<
"Unknown module event type (" <<
static_cast<int>(eventType) <<
")";
112 if (event.
IsNull())
return os <<
"NONE";
114 Module* m =
event.GetModule();
Module * GetModule() const
std::string GetLocation() const
US_Core_EXPORT std::ostream & operator<<(std::ostream &os, ModuleEvent::Type eventType)
ModuleEvent & operator=(const ModuleEvent &other)