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>
15 #include <vendor/optional.hpp>
23 class trace_class_visitor;
27 event_class(const event_class&) = delete;
28 event_class(event_class&&) = delete;
29 event_class& operator=(event_class&&) = delete;
30 event_class& operator=(const event_class&) = delete;
31 virtual ~event_class() = default;
33 virtual void accept(trace_class_visitor& visitor) const;
35 const unsigned int id;
36 const unsigned int stream_class_id;
38 const std::string name;
39 const nonstd::optional<std::string> model_emf_uri;
40 const lttng::sessiond::trace::type::cuptr payload;
43 event_class(unsigned int id,
44 unsigned int stream_class_id,
47 nonstd::optional<std::string> model_emf_uri,
48 lttng::sessiond::trace::type::cuptr payload);
51 } /* namespace trace */
52 } /* namespace sessiond */
53 } /* namespace lttng */
55 #endif /* LTTNG_EVENT_CLASS_H */