blob: be1d1a45bb8c797bcb8cd9eb3a0b4208b9459945 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include "yql_issue.h"
#include <util/generic/ylimits.h>
namespace NYql {
namespace NIssue {
namespace NProto {
class IssueMessage;
}
}
template<typename TIssueMessage>
TIssue IssueFromMessage(const TIssueMessage& issueMessage);
template<typename TIssueMessage>
void IssuesFromMessage(const ::google::protobuf::RepeatedPtrField<TIssueMessage>& message, TIssues& issues);
template<typename TIssueMessage>
TString IssuesFromMessageAsString(const ::google::protobuf::RepeatedPtrField<TIssueMessage>& message) {
TIssues issues;
IssuesFromMessage(message, issues);
return issues.ToOneLineString();
}
NIssue::NProto::IssueMessage IssueToMessage(const TIssue& topIssue);
template<typename TIssueMessage>
void IssueToMessage(const TIssue& topIssue, TIssueMessage* message);
template<typename TIssueMessage>
void IssuesToMessage(const TIssues& issues, ::google::protobuf::RepeatedPtrField<TIssueMessage>* message);
}
|