MCPcopy Create free account
hub / github.com/baldurk/renderdoc / saveTo

Function saveTo

qrenderdoc/Code/Interface/Analytics.cpp:166–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165template <typename T>
166void saveTo(QVariantMap &parent, const QString &name, const T &el, bool reporting)
167{
168 int idx = name.indexOf(QLatin1Char('.'));
169 if(idx > 0)
170 {
171 QString parentName = name.left(idx);
172 QString subname = name.mid(idx + 1);
173
174 // need to load-hit-store to change the contents :(.
175 {
176 QVariantMap map = parent[parentName].toMap();
177 saveTo(map, subname, el, reporting);
178 parent[parentName] = map;
179 }
180 return;
181 }
182
183 parent[name] = analyticsToVar<T>(el, reporting);
184}
185
186// add a macro to either document, load, or save, depending on our state.
187#define ANALYTIC_SERIALISE(varname) \

Callers 1

AnalyticsSerialiseFunction · 0.85

Calls 4

QLatin1CharClass · 0.85
indexOfMethod · 0.45
leftMethod · 0.45
midMethod · 0.45

Tested by

no test coverage detected