consumerd: send a buffer static sample on flush command
[lttng-tools.git] / src / bin / lttng-sessiond / event-class.cpp
CommitLineData
0220be14
JG
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#include "event-class.hpp"
9
10namespace lst = lttng::sessiond::trace;
11
12lst::event_class::event_class(unsigned int in_id,
13 unsigned int in_stream_class_id,
14 int in_log_level,
15 std::string in_name,
16 nonstd::optional<std::string> in_model_emf_uri,
17 lttng::sessiond::trace::type::cuptr in_payload) :
18 id{in_id},
19 stream_class_id{in_stream_class_id},
20 log_level{in_log_level},
21 name{std::move(in_name)},
22 model_emf_uri{std::move(in_model_emf_uri)},
23 payload{std::move(in_payload)}
24{
25}
26
27void lst::event_class::accept(lst::trace_class_visitor& visitor) const
28{
29 visitor.visit(*this);
30}
This page took 0.023543 seconds and 4 git commands to generate.