fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / src / bin / lttng-sessiond / event-class.hpp
1 /*
2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef LTTNG_EVENT_CLASS_H
9 #define LTTNG_EVENT_CLASS_H
10
11 #include "field.hpp"
12
13 #include <common/uuid.hpp>
14
15 #include <vendor/optional.hpp>
16
17 #include <string>
18
19 namespace lttng {
20 namespace sessiond {
21 namespace trace {
22
23 class trace_class_visitor;
24
25 class event_class {
26 public:
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;
32
33 virtual void accept(trace_class_visitor& visitor) const;
34
35 const unsigned int id;
36 const unsigned int stream_class_id;
37 const int log_level;
38 const std::string name;
39 const nonstd::optional<std::string> model_emf_uri;
40 const lttng::sessiond::trace::type::cuptr payload;
41
42 protected:
43 event_class(unsigned int id,
44 unsigned int stream_class_id,
45 int log_level,
46 std::string name,
47 nonstd::optional<std::string> model_emf_uri,
48 lttng::sessiond::trace::type::cuptr payload);
49 };
50
51 } /* namespace trace */
52 } /* namespace sessiond */
53 } /* namespace lttng */
54
55 #endif /* LTTNG_EVENT_CLASS_H */
This page took 0.029745 seconds and 4 git commands to generate.