MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / wd

Method wd

sourcecommon/maxxml.cpp:123–136  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

121}
122//---------------------------------------------------------------------------
123void XMLElementEx::wd(const AnsiString name, double val)
124{
125 XMLElement * p = FirstChildElement(name.c_str());
126 if( ! p )
127 {
128 XMLElement * e = GetDocument()->NewElement(name.c_str());
129 InsertEndChild(e);
130 e->SetText(val);
131 }
132 else
133 {
134 p->SetText(val);
135 }
136}
137//---------------------------------------------------------------------------
138void XMLElementEx::wb(const AnsiString name, bool val)
139{

Callers

nothing calls this directly

Calls 4

FirstChildElementFunction · 0.85
GetDocumentFunction · 0.85
NewElementMethod · 0.80
SetTextMethod · 0.80

Tested by

no test coverage detected