XBT_DEBUG("<<<<<<");
}
-static void init_stream(PajeEvent* event) {
- stream << std::fixed << std::setprecision(TRACE_precision());
- stream << (int) event->event_type;
-}
-
static void print_row() {
stream << std::endl;
fprintf(tracing_file, "%s", stream.str().c_str());
void DefineContainerEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << type->id
<< " " << type->father->id
<< " " << type->name;
void DefineVariableTypeEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << type->id
<< " " << type->father->id
<< " " << type->name;
void DefineStateTypeEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << type->id
<< " " << type->father->id
<< " " << type->name;
void DefineEventTypeEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << type->id
<< " " << type->father->id
<< " " << type->name;
void DefineLinkTypeEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream (this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << type->id
<< " " << type->father->id
<< " " << source->id
void DefineEntityValueEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
stream << " " << value->id
<< " " << value->father->id
<< " " << value->name;
void CreateContainerEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << container->id
<< " " << container->type->id
void DestroyContainerEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << container->type->id
<< " " << container->id;
void SetVariableEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id
void AddVariableEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id
void SubVariableEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id
void SetStateEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id;
void PushStateEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id;
void PopStateEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id;
void ResetStateEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id;
void StartLinkEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " <<type->id
<< " " <<container->id
void EndLinkEvent::print() {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " <<type->id
<< " " <<container->id
void NewEvent::print () {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream (this);
+ stream << std::fixed << std::setprecision(TRACE_precision());
+ stream << (int)this->event_type;
print_timestamp(this);
stream << " " << type->id
<< " " << container->id