+CondTrigger::CondTrigger(const Type type, const std::string& condId,
+ const bt2s::optional<std::string>& nameSuffix) noexcept :
+ _mType {type},
+ _mCondId {fmt::format("{}:{}", type == Type::PRE ? "pre" : "post", condId)},
+ _mName {
+ fmt::format("{}{}{}", condId, nameSuffix ? "-" : "", nameSuffix ? nameSuffix->data() : "")}