blob: 2580ead946df5fea73d88703787123cf1d659b42 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
// fidl_experiment = output_index_json
#include <fidl/test.placementofattributes/cpp/natural_ostream.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleEnum>::Format(std::ostream& os, const ::test_placementofattributes::ExampleEnum& value) {
os << "test_placementofattributes::ExampleEnum";
os << "::";
switch (value) {
case ::test_placementofattributes::ExampleEnum::kMember:
os << "kMember";
break;
default:
os << "UNKNOWN(" << static_cast<uint32_t>(value) << ")";
}
return os;
}
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleBits>::Format(std::ostream& os, const ::test_placementofattributes::ExampleBits& value) {
os << "test_placementofattributes::ExampleBits";
os << "(";
bool first = true;
if (value & ::test_placementofattributes::ExampleBits::kMember) {
if (!first) os << "|";
first = false;
os << "kMember";
}
os << ")";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleProtocolMethodRequest>::Format(std::ostream& os, const ::test_placementofattributes::ExampleProtocolMethodRequest& value) {
os << "test_placementofattributes::ExampleProtocolMethodRequest";
os << "{ ";
os << "arg";
os << " = " << fidl::ostream::Formatted<::test_exampleusing::Empty>(value.arg()) << ", ";
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleStruct>::Format(std::ostream& os, const ::test_placementofattributes::ExampleStruct& value) {
os << "test_placementofattributes::ExampleStruct";
os << "{ ";
os << "member";
os << " = " << fidl::ostream::Formatted<uint32_t>(value.member()) << ", ";
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleTable>::Format(std::ostream& os, const ::test_placementofattributes::ExampleTable& value) {
os << "test_placementofattributes::ExampleTable";
os << "{ ";
if (value.member().has_value()) {
os << "member";
os << " = " << fidl::ostream::Formatted<uint32_t>(value.member().value()) << ", ";
}
os << "}";
return os;
}
std::ostream& fidl::ostream::Formatter<::test_placementofattributes::ExampleUnion>::Format(std::ostream& os, const ::test_placementofattributes::ExampleUnion& value) {
os << "test_placementofattributes::ExampleUnion::";
switch (value.Which()) {
case ::test_placementofattributes::ExampleUnion::Tag::kVariant:
os << "variant(" << fidl::ostream::Formatted<uint32_t>(value.variant().value()) << ")";
break;
default:
os << "Unknown";
}
return os;
}
namespace test_placementofattributes {
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleBits& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleBits>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleEnum& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleEnum>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleProtocolMethodRequest& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleProtocolMethodRequest>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleStruct& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleStruct>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleTable& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleTable>::Format(os, value);
}
std::ostream& operator<<(std::ostream& os, const ::test_placementofattributes::ExampleUnion& value) {
return fidl::ostream::Formatter<::test_placementofattributes::ExampleUnion>::Format(os, value);
}
#pragma clang diagnostic pop
} // namespace test_placementofattributes