MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / ToStringVisitor

Class ToStringVisitor

src/openassetio-core/src/utils/formatter.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116namespace {
117struct ToStringVisitor {
118 std::string operator()(const openassetio::Str& arg) const { return fmt::format("'{}'", arg); }
119 std::string operator()(const openassetio::Float arg) const { return std::to_string(arg); }
120 std::string operator()(const openassetio::Int arg) const { return std::to_string(arg); }
121 std::string operator()(const openassetio::Bool arg) const { return arg ? "True" : "False"; }
122};
123} // namespace
124
125auto fmt::formatter<openassetio::trait::property::Value>::format(

Callers 1

formatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected