X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fstream-class.hpp;h=78f0c83cb8ee46c7a2f37cf7d8457954fe928006;hb=058a22419ad53e80927878b10012fd000ddeb48c;hp=08555f3071e55362f1ce4f20fae3d4ca7ab59a12;hpb=49830ece650265237f42277abe337d181ff9a025;p=deliverable%2Flttng-tools.git diff --git a/src/bin/lttng-sessiond/stream-class.hpp b/src/bin/lttng-sessiond/stream-class.hpp index 08555f307..78f0c83cb 100644 --- a/src/bin/lttng-sessiond/stream-class.hpp +++ b/src/bin/lttng-sessiond/stream-class.hpp @@ -10,6 +10,8 @@ #include "field.hpp" +#include + #include namespace lttng { @@ -29,7 +31,9 @@ public: void accept(trace_class_visitor& visitor) const; virtual ~stream_class() = default; - virtual const lttng::sessiond::trace::type& get_context() const; + virtual const type* get_packet_context() const; + virtual const type* get_event_header() const; + virtual const type* get_event_context() const; const unsigned int id; /* @@ -38,12 +42,17 @@ public: * nested-name-specifiers. */ const header_type header_type_; + const nonstd::optional default_clock_class_name; protected: - stream_class(unsigned int id, enum header_type header_type); + stream_class(unsigned int id, + enum header_type header_type, + nonstd::optional default_clock_class_name = nonstd::nullopt); virtual void _accept_on_event_classes(trace_class_visitor& trace_class_visitor) const = 0; - lttng::sessiond::trace::type::cuptr _context; + lttng::sessiond::trace::type::cuptr _packet_context; + lttng::sessiond::trace::type::cuptr _event_header; + lttng::sessiond::trace::type::cuptr _event_context; }; } /* namespace trace */