blob: 248e9c6f5000282a2e0a235a65937057a51dd770 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
#include <fidl/test.protocollayouts/cpp/natural_ostream.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::LocalTablePayload>::Format(std::ostream& os, const ::test_protocollayouts::LocalTablePayload& value) {
os << "test_protocollayouts::LocalTablePayload";
os << "{ ";
if (value.a().has_value()) {
os << "a";
os << " = " << fidl::ostream::Formatted<uint16_t>(value.a().value()) << ", ";
}
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolOneWayAnonRequest>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolOneWayAnonRequest& value) {
os << "test_protocollayouts::MainProtocolOneWayAnonRequest";
os << "{ ";
if (value.a().has_value()) {
os << "a";
os << " = " << fidl::ostream::Formatted<uint16_t>(value.a().value()) << ", ";
}
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonResponse>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonResponse& value) {
os << "test_protocollayouts::MainProtocolTwoWayAnonResponse";
os << "{ ";
if (value.a().has_value()) {
os << "a";
os << " = " << fidl::ostream::Formatted<uint16_t>(value.a().value()) << ", ";
}
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorRequest>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorRequest& value) {
os << "test_protocollayouts::MainProtocolTwoWayAnonWithErrorRequest";
os << "{ ";
if (value.a().has_value()) {
os << "a";
os << " = " << fidl::ostream::Formatted<uint16_t>(value.a().value()) << ", ";
}
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::LocalUnionPayload>::Format(std::ostream& os, const ::test_protocollayouts::LocalUnionPayload& value) {
os << "test_protocollayouts::LocalUnionPayload::";
switch (value.Which()) {
case ::test_protocollayouts::LocalUnionPayload::Tag::kB:
os << "b(" << fidl::ostream::Formatted<bool>(value.b().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult& value) {
os << "test_protocollayouts::MainProtocolTwoWayImportWithErrorResult::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult::Tag::kResponse:
os << "response(" << fidl::ostream::Formatted<::test_protocollayouts_imported::ImportUnionPayload>(value.response().value()) << ")";
break;
case ::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult::Tag::kErr:
os << "err(" << fidl::ostream::Formatted<uint32_t>(value.err().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult& value) {
os << "test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult::Tag::kResponse:
os << "response(" << fidl::ostream::Formatted<::test_protocollayouts::LocalUnionPayload>(value.response().value()) << ")";
break;
case ::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult::Tag::kErr:
os << "err(" << fidl::ostream::Formatted<uint32_t>(value.err().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonRequest>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonRequest& value) {
os << "test_protocollayouts::MainProtocolTwoWayAnonRequest::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolTwoWayAnonRequest::Tag::kB:
os << "b(" << fidl::ostream::Formatted<bool>(value.b().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse& value) {
os << "test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse::Tag::kB:
os << "b(" << fidl::ostream::Formatted<bool>(value.b().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult& value) {
os << "test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult::Tag::kResponse:
os << "response(" << fidl::ostream::Formatted<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse>(value.response().value()) << ")";
break;
case ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult::Tag::kErr:
os << "err(" << fidl::ostream::Formatted<uint32_t>(value.err().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_protocollayouts::MainProtocolOnAnonRequest>::Format(std::ostream& os, const ::test_protocollayouts::MainProtocolOnAnonRequest& value) {
os << "test_protocollayouts::MainProtocolOnAnonRequest::";
switch (value.Which()) {
case ::test_protocollayouts::MainProtocolOnAnonRequest::Tag::kB:
os << "b(" << fidl::ostream::Formatted<bool>(value.b().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
namespace test_protocollayouts {
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::LocalTablePayload& value) {
return fidl::ostream::Formatter<::test_protocollayouts::LocalTablePayload>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::LocalUnionPayload& value) {
return fidl::ostream::Formatter<::test_protocollayouts::LocalUnionPayload>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayImportWithErrorResult>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayLocalWithErrorResult>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolOneWayAnonRequest& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolOneWayAnonRequest>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonRequest& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonRequest>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonResponse& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonResponse>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorRequest& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorRequest>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResponse>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolTwoWayAnonWithErrorResult>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_protocollayouts::MainProtocolOnAnonRequest& value) {
return fidl::ostream::Formatter<::test_protocollayouts::MainProtocolOnAnonRequest>::Format(os, value);
}
#pragma clang diagnostic pop
} // namespace test_protocollayouts