/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-PajeEvent::PajeEvent(Container* container, Type* type, double timestamp, e_event_type eventType)
+PajeEvent::PajeEvent(Container* container, Type* type, double timestamp, PajeEventType eventType)
: container_(container), type_(type), timestamp_(timestamp), eventType_(eventType)
{
on_creation(*this);
: container_(container), type_(type), timestamp_(timestamp), eventType_(eventType)
{
on_creation(*this);
-StateEvent::StateEvent(Container* container, Type* type, e_event_type event_type, EntityValue* value, TIData* extra)
+StateEvent::StateEvent(Container* container, Type* type, PajeEventType event_type, EntityValue* value, TIData* extra)
: PajeEvent::PajeEvent(container, type, SIMIX_get_clock(), event_type), value(value), extra_(extra)
{
#if HAVE_SMPI
: PajeEvent::PajeEvent(container, type, SIMIX_get_clock(), event_type), value(value), extra_(extra)
{
#if HAVE_SMPI
const smpi_trace_call_location_t* loc = smpi_trace_get_call_location();
filename = loc->filename;
linenumber = loc->linenumber;
const smpi_trace_call_location_t* loc = smpi_trace_get_call_location();
filename = loc->filename;
linenumber = loc->linenumber;
stream_ << " " << value->get_id();
if (TRACE_display_sizes())
stream_ << " " << ((extra_ != nullptr) ? extra_->display_size() : "");
#if HAVE_SMPI
stream_ << " " << value->get_id();
if (TRACE_display_sizes())
stream_ << " " << ((extra_ != nullptr) ? extra_->display_size() : "");
#if HAVE_SMPI
stream_ << container_name << " location " << filename << " " << linenumber << std::endl ;
#endif
stream_ << container_name << " " << extra_->print();
stream_ << container_name << " location " << filename << " " << linenumber << std::endl ;
#endif
stream_ << container_name << " " << extra_->print();