diff options
author | serxa <serxa@yandex-team.ru> | 2022-02-10 16:49:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:08 +0300 |
commit | d6d7db348c2cc64e71243cab9940ee6778f4317d (patch) | |
tree | bac67f42a02f9368eb4d329f5d79b77d0a6adc18 /library/cpp/lwtrace/event.h | |
parent | 8d57b69dee81198a59c39e64704f7dc9f04b4fbf (diff) | |
download | ydb-d6d7db348c2cc64e71243cab9940ee6778f4317d.tar.gz |
Restoring authorship annotation for <serxa@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace/event.h')
-rw-r--r-- | library/cpp/lwtrace/event.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/lwtrace/event.h b/library/cpp/lwtrace/event.h index e53a620c456..417ec823d82 100644 --- a/library/cpp/lwtrace/event.h +++ b/library/cpp/lwtrace/event.h @@ -1,29 +1,29 @@ -#pragma once - +#pragma once + #include "preprocessor.h" -#include "signature.h" +#include "signature.h" #include "param_traits.h" #include <library/cpp/lwtrace/protos/lwtrace.pb.h> - -namespace NLWTrace { - // Common class for all events - struct TEvent { - const char* Name; - const char* Groups[LWTRACE_MAX_GROUPS + 1]; - TSignature Signature; - - const char* GetProvider() const { - return Groups[0]; - } - - void ToProtobuf(TEventPb& pb) const { - pb.SetName(Name); - for (const char* const* gi = Groups; *gi != nullptr; gi++) { - pb.AddGroups(*gi); - } - Signature.ToProtobuf(pb); - } - }; - -} + +namespace NLWTrace { + // Common class for all events + struct TEvent { + const char* Name; + const char* Groups[LWTRACE_MAX_GROUPS + 1]; + TSignature Signature; + + const char* GetProvider() const { + return Groups[0]; + } + + void ToProtobuf(TEventPb& pb) const { + pb.SetName(Name); + for (const char* const* gi = Groups; *gi != nullptr; gi++) { + pb.AddGroups(*gi); + } + Signature.ToProtobuf(pb); + } + }; + +} |