X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry-event.hpp;h=38d96eb8fbd179b9a6982bac0377b1ce68cb7d4c;hb=283a96e49f066a4263726271bc64aa7e94ae0e92;hp=b38b09553c18d432f96b98a9a49eb254fdf2a4f3;hpb=31375c424ac115fc0373237207fed795849e26ba;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-registry-event.hpp b/src/bin/lttng-sessiond/ust-registry-event.hpp index b38b09553..38d96eb8f 100644 --- a/src/bin/lttng-sessiond/ust-registry-event.hpp +++ b/src/bin/lttng-sessiond/ust-registry-event.hpp @@ -13,6 +13,7 @@ #include #include + #include #include @@ -28,15 +29,19 @@ namespace ust { class registry_event : public lttng::sessiond::trace::event_class { public: registry_event(unsigned int id, - unsigned int stream_class_id, - int session_objd, - int channel_objd, - std::string name, - std::string signature, - std::vector fields, - int loglevel_value, - nonstd::optional model_emf_uri); + unsigned int stream_class_id, + int session_objd, + int channel_objd, + std::string name, + std::string signature, + std::vector fields, + int loglevel_value, + nonstd::optional model_emf_uri); ~registry_event() override = default; + registry_event(const registry_event&) = delete; + registry_event(registry_event&&) = delete; + registry_event& operator=(registry_event&&) = delete; + registry_event& operator=(const registry_event&) = delete; /* Both objd are set by the tracer. */ const int session_objd; @@ -71,13 +76,17 @@ namespace fmt { template <> struct formatter : formatter { template - typename FormatContextType::iterator format( - const lttng::sessiond::ust::registry_event& event, FormatContextType& ctx) + typename FormatContextType::iterator + format(const lttng::sessiond::ust::registry_event& event, FormatContextType& ctx) { - return format_to(ctx.out(), - "{{ name = `{}`, signature = `{}`, id = {}, session objd = {}, channel objd = {} }}", - event.name, event.signature, event.id, event.session_objd, - event.channel_objd); + return format_to( + ctx.out(), + "{{ name = `{}`, signature = `{}`, id = {}, session objd = {}, channel objd = {} }}", + event.name, + event.signature, + event.id, + event.session_objd, + event.channel_objd); } }; } /* namespace fmt */