MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / createPlainMessage

Function createPlainMessage

src/Message.cpp:960–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958} // namespace
959
960PlainMessage createPlainMessage()
961{
962 // Let's create a pseudo connection -- one that does not really connect to the real bus.
963 // This is a bit of a hack, but it enables use to work with D-Bus message locally without
964 // the need of D-Bus daemon. This is especially useful in unit tests of both sdbus-c++ and client code.
965 // Additionally, it's light-weight and fast solution.
966 const auto& connection = getPseudoConnectionInstance();
967 return connection.createPlainMessage();
968}
969
970} // namespace sdbus

Callers 4

VariantMethod · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85

Calls 1

createPlainMessageMethod · 0.80

Tested by 3

TESTFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68