mark_color = white;
XBT_DEBUG("MARK,declare_value %s %s %s", mark_type, mark_value, mark_color);
- new simgrid::instr::Value(mark_value, mark_color, type);
+ simgrid::instr::Value::byNameOrCreate(mark_value, mark_color, type);
}
/** \ingroup TRACE_mark
XBT_DEBUG("MARK %s %s", mark_type, mark_value);
new simgrid::instr::NewEvent(MSG_get_clock(), PJ_container_get_root(), type,
- simgrid::instr::Value::get(mark_value, type));
+ simgrid::instr::Value::byName(mark_value, type));
}
/** \ingroup TRACE_mark
{
container_t container = PJ_container_get(host);
simgrid::instr::Type* type = container->type_->getChild(state);
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new(
- value_str, nullptr, type); /* if user didn't declare a value with a color, use nullptr color */
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
+ value_str, "", type); /* if user didn't declare a value with a color, use no color */
new simgrid::instr::SetStateEvent(MSG_get_clock(), container, type, val);
}
{
container_t container = PJ_container_get(host);
simgrid::instr::Type* type = container->type_->getChild(state);
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new(
- value_str, nullptr, type); /* if user didn't declare a value with a color, use nullptr color */
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
+ value_str, "", type); /* if user didn't declare a value with a color, use no color */
new simgrid::instr::PushStateEvent(MSG_get_clock(), container, type, val);
}