MCPcopy Create free account
hub / github.com/LUX-Core/lux / ToString

Method ToString

src/alert.cpp:50–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::string CUnsignedAlert::ToString() const
51{
52 std::string strSetCancel;
53 for (auto& n: setCancel)
54 strSetCancel += strprintf("%d ", n);
55 std::string strSetSubVer;
56 for (std::string str : setSubVer)
57 strSetSubVer += "\"" + str + "\" ";
58 return strprintf(
59 "CAlert(\n"
60 " nVersion = %d\n"
61 " nRelayUntil = %d\n"
62 " nExpiration = %d\n"
63 " nID = %d\n"
64 " nCancel = %d\n"
65 " setCancel = %s\n"
66 " nMinVer = %d\n"
67 " nMaxVer = %d\n"
68 " setSubVer = %s\n"
69 " nPriority = %d\n"
70 " strComment = \"%s\"\n"
71 " strStatusBar = \"%s\"\n"
72 ")\n",
73 nVersion,
74 nRelayUntil,
75 nExpiration,
76 nID,
77 nCancel,
78 strSetCancel,
79 nMinVer,
80 nMaxVer,
81 strSetSubVer,
82 nPriority,
83 strComment,
84 strStatusBar);
85}
86
87void CAlert::SetNull()
88{

Callers 1

ThreadSendAlertFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected