MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setString

Function setString

app/src/API/GRPC/ConversionUtils.cpp:150–153  ·  view source on GitHub ↗

* @brief Sets a string field on a protobuf Struct. */

Source from the content-addressed store, hash-verified

148 * @brief Sets a string field on a protobuf Struct.
149 */
150static inline void setString(google::protobuf::Struct& s, const char* key, const QString& val)
151{
152 (*s.mutable_fields())[key].set_string_value(val.toStdString());
153}
154
155/**
156 * @brief Sets a double field on a protobuf Struct.

Callers 1

frameToProtoStructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected