Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move printers to corresponding */out.cpp files #2502

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ydb/core/tx/replication/ydb_proxy/ydb_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ struct TEvYdbProxy {
TString ToString() const override {
auto ret = TStringBuilder() << this->ToStringHeader();
if constexpr (THasOutFunc<TResult>::Value) {
ret << " { Result: " << Result << " }";
ret << " { Result: ";
Result.Out(ret.Out);
ret << " }";
}
return ret;
}
Expand Down
8 changes: 0 additions & 8 deletions ydb/public/sdk/cpp/client/ydb_export/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,3 @@ class TExportClient {

} // namespace NExport
} // namespace NYdb

Y_DECLARE_OUT_SPEC(inline, NYdb::NExport::TExportToYtResponse, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(inline, NYdb::NExport::TExportToS3Response, o, x) {
return x.Out(o);
}
9 changes: 9 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_export/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "export.h"

Y_DECLARE_OUT_SPEC(, NYdb::NExport::TExportToYtResponse, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NExport::TExportToS3Response, o, x) {
return x.Out(o);
}
1 change: 1 addition & 0 deletions ydb/public/sdk/cpp/client/ydb_export/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LIBRARY()

SRCS(
export.cpp
out.cpp
)

GENERATE_ENUM_SERIALIZATION(export.h)
Expand Down
5 changes: 5 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_result/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "result.h"

Y_DECLARE_OUT_SPEC(, NYdb::TColumn, o, x) {
return x.Out(o);
}
4 changes: 0 additions & 4 deletions ydb/public/sdk/cpp/client/ydb_result/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,3 @@ class TResultSetParser : public TMoveOnly {
using TResultSets = TVector<TResultSet>;

} // namespace NYdb

Y_DECLARE_OUT_SPEC(inline, NYdb::TColumn, o, x) {
return x.Out(o);
}
1 change: 1 addition & 0 deletions ydb/public/sdk/cpp/client/ydb_result/ya.make
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBRARY()

SRCS(
out.cpp
proto_accessor.cpp
result.cpp
)
Expand Down
17 changes: 17 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_scheme/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "scheme.h"

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TVirtualTimestamp, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TSchemeEntry, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TDescribePathResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TListDirectoryResult, o, x) {
return x.Out(o);
}
16 changes: 0 additions & 16 deletions ydb/public/sdk/cpp/client/ydb_scheme/scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,3 @@ TAsyncStatus TSchemeClient::ModifyPermissions(const TString& path,

} // namespace NScheme
} // namespace NYdb

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TVirtualTimestamp, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TSchemeEntry, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TDescribePathResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NScheme::TListDirectoryResult, o, x) {
return x.Out(o);
}
1 change: 1 addition & 0 deletions ydb/public/sdk/cpp/client/ydb_scheme/ya.make
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBRARY()

SRCS(
out.cpp
scheme.cpp
)

Expand Down
25 changes: 25 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_table/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "table.h"

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TIndexDescription, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TChangefeedDescription, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TValueSinceUnixEpochModeSettings::EUnit, o, x) {
return NYdb::NTable::TValueSinceUnixEpochModeSettings::Out(o, x);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TTxSettings, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TCreateSessionResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TDescribeTableResult, o, x) {
return x.Out(o);
}
8 changes: 0 additions & 8 deletions ydb/public/sdk/cpp/client/ydb_table/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2849,11 +2849,3 @@ TReadRowsResult::TReadRowsResult(TStatus&& status, TResultSet&& resultSet)

} // namespace NTable
} // namespace NYdb

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TCreateSessionResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTable::TDescribeTableResult, o, x) {
return x.Out(o);
}
16 changes: 0 additions & 16 deletions ydb/public/sdk/cpp/client/ydb_table/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -2008,19 +2008,3 @@ class TReadRowsResult : public TStatus {

} // namespace NTable
} // namespace NYdb

Y_DECLARE_OUT_SPEC(inline, NYdb::NTable::TIndexDescription, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(inline, NYdb::NTable::TChangefeedDescription, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(inline, NYdb::NTable::TValueSinceUnixEpochModeSettings::EUnit, o, x) {
return NYdb::NTable::TValueSinceUnixEpochModeSettings::Out(o, x);
}

Y_DECLARE_OUT_SPEC(inline, NYdb::NTable::TTxSettings, o, x) {
return x.Out(o);
}
3 changes: 2 additions & 1 deletion ydb/public/sdk/cpp/client/ydb_table/ya.make
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
LIBRARY()

SRCS(
table.cpp
out.cpp
proto_accessor.cpp
table.cpp
)

GENERATE_ENUM_SERIALIZATION(table_enum.h)
Expand Down
8 changes: 0 additions & 8 deletions ydb/public/sdk/cpp/client/ydb_topic/impl/topic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,3 @@ TAsyncStatus TTopicClient::CommitOffset(const TString& path, ui64 partitionId, c
}

} // namespace NYdb::NTopic

Y_DECLARE_OUT_SPEC(, NYdb::NTopic::TDescribeTopicResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTopic::TDescribeConsumerResult, o, x) {
return x.Out(o);
}
9 changes: 9 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_topic/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "topic.h"

Y_DECLARE_OUT_SPEC(, NYdb::NTopic::TDescribeTopicResult, o, x) {
return x.Out(o);
}

Y_DECLARE_OUT_SPEC(, NYdb::NTopic::TDescribeConsumerResult, o, x) {
return x.Out(o);
}
3 changes: 2 additions & 1 deletion ydb/public/sdk/cpp/client/ydb_topic/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ LIBRARY()
GENERATE_ENUM_SERIALIZATION(ydb/public/sdk/cpp/client/ydb_topic/topic.h)

SRCS(
topic.h
out.cpp
proto_accessor.cpp
topic.h
)

PEERDIR(
Expand Down
4 changes: 0 additions & 4 deletions ydb/public/sdk/cpp/client/ydb_types/operation/operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,3 @@ class TOperation {
using TAsyncOperation = NThreading::TFuture<TOperation>;

} // namespace NYdb

Y_DECLARE_OUT_SPEC(inline, NYdb::TOperation, o, x) {
return x.Out(o);
}
5 changes: 5 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_types/operation/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "operation.h"

Y_DECLARE_OUT_SPEC(, NYdb::TOperation, o, x) {
return x.Out(o);
}
1 change: 1 addition & 0 deletions ydb/public/sdk/cpp/client/ydb_types/operation/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ LIBRARY()

SRCS(
operation.cpp
out.cpp
)

PEERDIR(
Expand Down
4 changes: 0 additions & 4 deletions ydb/public/sdk/cpp/client/ydb_types/status/status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,3 @@ bool TStreamPartStatus::EOS() const {
}

} // namespace NYdb

Y_DECLARE_OUT_SPEC(, NYdb::TStatus, o, x) {
return x.Out(o);
}
5 changes: 5 additions & 0 deletions ydb/public/sdk/cpp/client/ydb_value/out.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "value.h"

Y_DECLARE_OUT_SPEC(, NYdb::TType, o, x) {
return x.Out(o);
}
4 changes: 0 additions & 4 deletions ydb/public/sdk/cpp/client/ydb_value/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,3 @@ class TValueBuilder : public TValueBuilderBase<TValueBuilder> {
};

} // namespace NYdb

Y_DECLARE_OUT_SPEC(inline, NYdb::TType, o, x) {
return x.Out(o);
}
1 change: 1 addition & 0 deletions ydb/public/sdk/cpp/client/ydb_value/ya.make
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
LIBRARY()

SRCS(
out.cpp
value.cpp
)

Expand Down
Loading