2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef LTTNG_EVENT_CLASS_H
9 #define LTTNG_EVENT_CLASS_H
13 #include <common/uuid.hpp>
14 #include <vendor/optional.hpp>
22 class trace_class_visitor;
26 virtual void accept(trace_class_visitor& visitor) const;
27 virtual ~event_class() = default;
29 const unsigned int id;
30 const unsigned int stream_class_id;
32 const std::string name;
33 const nonstd::optional<std::string> model_emf_uri;
34 const lttng::sessiond::trace::type::cuptr payload;
37 event_class(unsigned int id,
38 unsigned int stream_class_id,
41 nonstd::optional<std::string> model_emf_uri,
42 lttng::sessiond::trace::type::cuptr payload);
45 } /* namespace trace */
46 } /* namespace sessiond */
47 } /* namespace lttng */
49 #endif /* LTTNG_EVENT_CLASS_H */