This repository was archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautopublishdata_8cpp_source.html
435 lines (433 loc) · 79.6 KB
/
autopublishdata_8cpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>swift: src/blackmisc/simulation/autopublishdata.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">swift
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9687d2aaac47be79d7525830e55feee8.html">blackmisc</a></li><li class="navelem"><a class="el" href="dir_cd2f2d0ca211e9845f9d0ff4817a2bb1.html">simulation</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">autopublishdata.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="autopublishdata_8h.html">blackmisc/simulation/autopublishdata.h</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="swiftdirectories_8h.html">blackmisc/swiftdirectories.h</a>"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="fileutils_8h.html">blackmisc/fileutils.h</a>"</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="json_8h.html">blackmisc/json.h</a>"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="logcategories_8h.html">blackmisc/logcategories.h</a>"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="setbuilder_8h.html">blackmisc/setbuilder.h</a>"</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <QStringList></span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <QStringBuilder></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <QDateTime></span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <QDir></span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <QFile></span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <QFileInfo></span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">using namespace </span>BlackMisc::PhysicalQuantities;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span>BlackMisc::Simulation</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#abb090ef1fda62ffba55387f97c0ca6ef"> 22</a></span>  <span class="keywordtype">void</span> CAutoPublishData::insert(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &modelString, <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">PhysicalQuantities::CLength</a> &cg)</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  {</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">if</span> (cg.<a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_physical_quantity.html#aff90526c73f7bb7ff9411d9a335456c6">isNull</a>() || modelString.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  m_modelStringVsCG.insert(modelString.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#toUpper">toUpper</a>(), cg);</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a7a893d0db4ffde9148e0edb06e93397e"> 28</a></span>  <span class="keywordtype">void</span> CAutoPublishData::insert(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &modelString, <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html">CSimulatorInfo</a> &simulator)</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">if</span> (!simulator.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html#a1c500dd06d851e93eaac5dcd6205da80">isSingleSimulator</a>() || modelString.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  m_modelStringVsSimulatorInfo.insert(modelString.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#toUpper">toUpper</a>(), simulator);</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a01856b7d8e03d1049cd298f7e12b9d6d"> 34</a></span>  <span class="keywordtype">void</span> CAutoPublishData::clear()</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  m_modelStringVsCG.clear();</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  m_modelStringVsSimulatorInfo.clear();</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#ac56fb85f5e3b4a01c846e0285f95e3d8"> 40</a></span>  <span class="keywordtype">bool</span> CAutoPublishData::isEmpty()<span class="keyword"> const</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">return</span> m_modelStringVsCG.isEmpty() && m_modelStringVsSimulatorInfo.isEmpty();</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a9865c3998b4e8870f8c028b0f21d1c6a"> 45</a></span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> CAutoPublishData::toDatabaseJson()<span class="keyword"> const</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// used simple string JSON generation as it is faster</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> json;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> [<span class="keywordtype">string</span>, cg] : <a class="code" href="namespace_black_misc.html#a7a70956fc48706f6a748544dba781b46">makePairsRange</a>(m_modelStringVsCG))</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  json += QStringLiteral(<span class="stringliteral">"{ \"type\": \"cg\", \"modelstring\": \"%1\", \"cgft\": %2 },\n"</span>).<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#arg-1">arg</a>(<span class="keywordtype">string</span>, cg.valueRoundedAsString(<a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">CLengthUnit::ft</a>(), 1));</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> [<span class="keywordtype">string</span>, sim] : <a class="code" href="namespace_black_misc.html#a7a70956fc48706f6a748544dba781b46">makePairsRange</a>(m_modelStringVsSimulatorInfo))</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  json += QStringLiteral(<span class="stringliteral">"{ \"type\": \"simulatorupdate\", \"modelstring\": \"%1\", \"simulator\": \"%2\" },\n"</span>).<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#arg-1">arg</a>(<span class="keywordtype">string</span>, sim.toQString(<span class="keyword">false</span>));</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span> (json.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> {}; }</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  json.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#chop">chop</a>(2); <span class="comment">// remove 2 chars at end</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> u<span class="stringliteral">"[\n"</span> % json % u<span class="stringliteral">"\n]\n"</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a29b7de75a6dcf919c852825c3184dfdd"> 65</a></span>  <span class="keywordtype">int</span> CAutoPublishData::fromDatabaseJson(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &jsonData, <span class="keywordtype">bool</span> clear)</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (clear) { this->clear(); }</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (jsonData.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qjsonarray.html">QJsonArray</a> array = <a class="code" href="group___j_s_o_n.html#gac8c57f1096b76af738ec89e6adc89807">Json::jsonArrayFromString</a>(jsonData);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (array.<a class="codeRef" href="http://doc.qt.io/qt-5/qjsonarray.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qjsonvalue.html">QJsonValue</a> &value : array)</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qjsonobject.html">QJsonObject</a> obj = value.toObject();</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> t = obj[<span class="stringliteral">"type"</span>].toString();</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> m = obj[<span class="stringliteral">"modelstring"</span>].toString();</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (m.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">continue</span>; }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span> (t.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#startsWith">startsWith</a>(<span class="stringliteral">"simulator"</span>, <a class="codeRef" href="http://doc.qt.io/qt-5/qt.html#CaseSensitivity-enum">Qt::CaseInsensitive</a>))</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> simulator = obj[<span class="stringliteral">"simulator"</span>].toString();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html">CSimulatorInfo</a> si(simulator);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">if</span> (si.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html#a1c500dd06d851e93eaac5dcd6205da80">isSingleSimulator</a>())</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  this->insert(m, si);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (t.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#startsWith">startsWith</a>(<span class="stringliteral">"cg"</span>, <a class="codeRef" href="http://doc.qt.io/qt-5/qt.html#CaseSensitivity-enum">Qt::CaseInsensitive</a>))</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> cgFt = obj[<span class="stringliteral">"cgft"</span>].toDouble(-1);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">if</span> (cgFt < 0) { <span class="keywordflow">continue</span>; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  this->insert(m, <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">CLength</a>(cgFt, <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">CLengthUnit::ft</a>()));</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> m_modelStringVsCG.size() + m_modelStringVsSimulatorInfo.size();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a40429cba35187a48223c89f78322477d"> 99</a></span>  <span class="keywordtype">bool</span> CAutoPublishData::writeJsonToFile()<span class="keyword"> const</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> (this->isEmpty()) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> fn = fileBaseName() % u<span class="charliteral">'_'</span> % <a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html#currentDateTimeUtc">QDateTime::currentDateTimeUtc</a>().<a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html#toString-1">toString</a>(<span class="stringliteral">"yyyyMMddHHmmss"</span>) % fileAppendix();</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> this->writeJsonToFile(<a class="code" href="class_black_misc_1_1_c_file_utils.html#a1b130394cb8ec6ca700057089bf3476c">CFileUtils::appendFilePaths</a>(<a class="code" href="class_black_misc_1_1_c_swift_directories.html#abbdc945f9a7b9cb884bfe042531ec128">CSwiftDirectories::logDirectory</a>(), fn));</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a9da38bb3ae7e79098de4d4217cc09027"> 106</a></span>  <span class="keywordtype">bool</span> CAutoPublishData::writeJsonToFile(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &pathAndFile)<span class="keyword"> const</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> (this->isEmpty()) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> json = this->toDatabaseJson();</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="class_black_misc_1_1_c_file_utils.html#a1f793fccc0df77068ec4b78869eb4752">CFileUtils::writeStringToFile</a>(json, pathAndFile);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a7f356120dc227dc8faa318d55381af28"> 113</a></span>  <span class="keywordtype">bool</span> CAutoPublishData::readFromJsonFile(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &fileAndPath, <span class="keywordtype">bool</span> clear)</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  {</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> json = <a class="code" href="class_black_misc_1_1_c_file_utils.html#a1fa7111a3b58413ccb555150091d9452">CFileUtils::readFileToString</a>(fileAndPath);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (json.<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  this->fromDatabaseJson(json, clear);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#ae6eea11163d9f35e58cadd4fe049281b"> 121</a></span>  <span class="keywordtype">int</span> CAutoPublishData::readFromJsonFiles(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &dirPath)</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  {</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> fileList = findAndCleanupPublishFiles(dirPath);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> (fileList.<a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  this->clear();</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordtype">int</span> c = 0;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &file : fileList)</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  {</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="comment">// read from file</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (this->readFromJsonFile(<a class="code" href="class_black_misc_1_1_c_file_utils.html#a1b130394cb8ec6ca700057089bf3476c">CFileUtils::appendFilePaths</a>(dirPath, file), <span class="keyword">false</span>)) { c++; }</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> c;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a0672b2a5e2a69367c61a2e2444d2b69e"> 136</a></span>  <a class="code" href="class_black_misc_1_1_c_status_message_list.html">CStatusMessageList</a> CAutoPublishData::analyzeAgainstDBData(<span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model_list.html">CAircraftModelList</a> &dbModels)</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_c_log_category_list.html">CLogCategoryList</a> cats({ <a class="code" href="class_black_misc_1_1_c_log_categories.html#a17df4ee0ed0d66d07c8d07b18c01c79f">CLogCategories::mapping</a>(), <a class="code" href="class_black_misc_1_1_c_log_categories.html#ad5d4fe1440e237d4ab0afa5c824f0bc7">CLogCategories::webservice</a>() });</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">if</span> (dbModels.<a class="code" href="class_black_misc_1_1_c_sequence.html#aa68fa203f1b72b6e94834d6b85646dde">isEmpty</a>()) { <span class="keywordflow">return</span> <a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(<span class="keyword">this</span>).<a class="code" href="class_black_misc_1_1_c_message_base.html#a0882751cc1af54a56c7246cb8c0b6a72">validationError</a>(u<span class="stringliteral">"No DB data"</span>); }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span> (this->isEmpty()) { <span class="keywordflow">return</span> <a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(<span class="keyword">this</span>).<a class="code" href="class_black_misc_1_1_c_message_base.html#a3006e244f3fd49fcd921ea0774285391">validationWarning</a>(u<span class="stringliteral">"No data"</span>); }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="class_black_misc_1_1_c_status_message_list.html">CStatusMessageList</a> msgs;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  msgs.<a class="code" href="class_black_misc_1_1_c_sequence.html#a3b1a591f9338825e0364e940f8e06cb0">push_back</a>(<a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(cats).validationInfo(u<span class="stringliteral">"DB models: %1"</span>) << dbModels.<a class="code" href="class_black_misc_1_1_c_sequence.html#a26e7c3866dc7a18974b18d505346df35">size</a>());</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="class_black_misc_1_1_c_set_builder.html">CSetBuilder<QString></a> unchangedCG;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &modelString : m_modelStringVsCG.keys())</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html">CAircraftModel</a> dbModel = dbModels.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model_list.html#a156b63a94333eaccc9274e2744ae579b">findFirstByModelStringOrDefault</a>(modelString);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">if</span> (dbModel.<a class="code" href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a7961ec8eab13b5d7b054eaf6e136dab3">hasValidDbKey</a>())</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">if</span> (dbModel.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html#abd80ab102e4c2a3231eb4a71e875c281">getCG</a>() == m_modelStringVsCG[modelString])</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  {</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  unchangedCG.<a class="code" href="class_black_misc_1_1_c_set_builder.html#a508312059aeb865275da3ec604bb53d6">insert</a>(modelString);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="class_black_misc_1_1_c_set_builder.html">CSetBuilder<QString></a> unchangedSim;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &modelString : m_modelStringVsSimulatorInfo.keys())</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html">CAircraftModel</a> dbModel = dbModels.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model_list.html#a156b63a94333eaccc9274e2744ae579b">findFirstByModelStringOrDefault</a>(modelString);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">if</span> (dbModel.<a class="code" href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a7961ec8eab13b5d7b054eaf6e136dab3">hasValidDbKey</a>())</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  {</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">if</span> (dbModel.<a class="code" href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html#a71d993c8e07475855747f96ff490a18e">getSimulator</a>().<a class="code" href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html#af730df60c6817797045f690b8e0fb461">matchesAny</a>(m_modelStringVsSimulatorInfo[modelString]))</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  unchangedSim.<a class="code" href="class_black_misc_1_1_c_set_builder.html#a508312059aeb865275da3ec604bb53d6">insert</a>(modelString);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// remove</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">if</span> (!unchangedCG.<a class="code" href="class_black_misc_1_1_c_set_builder.html#a2ab8ff4171f8d30de370f63404df493b">isEmpty</a>())</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html">QList<QString></a> unchangedCGList = std::move(unchangedCG);</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  msgs.<a class="code" href="class_black_misc_1_1_c_sequence.html#a3b1a591f9338825e0364e940f8e06cb0">push_back</a>(<a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(cats).validationInfo(u<span class="stringliteral">"Removing unchanged CGs: %1"</span>) << unchangedCGList.<a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html#size">size</a>());</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &m : unchangedCGList) { m_modelStringVsCG.remove(m); }</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">if</span> (!unchangedSim.<a class="code" href="class_black_misc_1_1_c_set_builder.html#a2ab8ff4171f8d30de370f63404df493b">isEmpty</a>())</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  {</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html">QList<QString></a> unchangedSimList = std::move(unchangedSim);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  msgs.<a class="code" href="class_black_misc_1_1_c_sequence.html#a3b1a591f9338825e0364e940f8e06cb0">push_back</a>(<a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(cats).validationInfo(u<span class="stringliteral">"Removing unchanged simulators: %1"</span>) << unchangedSimList.<a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html#size">size</a>());</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &m : unchangedSimList) { m_modelStringVsSimulatorInfo.remove(m); }</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  }</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  msgs.<a class="code" href="class_black_misc_1_1_c_sequence.html#a3b1a591f9338825e0364e940f8e06cb0">push_back</a>(<a class="code" href="class_black_misc_1_1_c_status_message.html">CStatusMessage</a>(<span class="keyword">this</span>).validationInfo(this->getSummary()));</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> msgs;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a90f3f4246d7a27de992a56d697cf69c5"> 190</a></span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> CAutoPublishData::getSummary()<span class="keyword"> const</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">return</span> QStringLiteral(<span class="stringliteral">"Changed CGs: %1 | sim.entries: %2"</span>).<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#arg-1">arg</a>(m_modelStringVsCG.size()).<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#arg-1">arg</a>(m_modelStringVsSimulatorInfo.size());</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a1a8b7d806d294e7dcc734ff95e178424"> 195</a></span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qset.html">QSet<QString></a> CAutoPublishData::allModelStrings()<span class="keyword"> const</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qset.html">QSet<QString></a> allStrings(m_modelStringVsCG.keyBegin(), m_modelStringVsCG.keyEnd());</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  allStrings.<a class="codeRef" href="http://doc.qt.io/qt-5/qset.html#unite">unite</a>(<a class="codeRef" href="http://doc.qt.io/qt-5/qset.html">QSet<QString></a>(m_modelStringVsSimulatorInfo.keyBegin(), m_modelStringVsSimulatorInfo.keyEnd()));</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">return</span> allStrings;</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordtype">void</span> CAutoPublishData::testData()</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  {</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  this->clear();</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">CLength</a> cg1(10, <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">CLengthUnit::ft</a>());</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">CLength</a> cg2(40, <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">CLengthUnit::ft</a>());</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keyword">const</span> <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">CLength</a> cg3(30, <a class="code" href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">CLengthUnit::ft</a>());</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  this->insert(<span class="stringliteral">"testModelString1"</span>, cg1);</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  this->insert(<span class="stringliteral">"testModelString2"</span>, cg2);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  this->insert(<span class="stringliteral">"testModelString3"</span>, cg3);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  this->insert(<span class="stringliteral">"testModelString1"</span>, CSimulatorInfo::fs9());</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  this->insert(<span class="stringliteral">"testModelString2"</span>, CSimulatorInfo::xplane());</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  this->insert(<span class="stringliteral">"testModelString3"</span>, CSimulatorInfo::fg());</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  this->insert(<span class="stringliteral">"testModelString4"</span>, CSimulatorInfo::p3d());</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  this->insert(<span class="stringliteral">"testModelString5"</span>, CSimulatorInfo::fsx());</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  this->insert(<span class="stringliteral">"testModelString6"</span>, CSimulatorInfo::fsx());</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#abf0707a4e984412291fbf30dfd5667f2"> 222</a></span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &CAutoPublishData::fileBaseName()</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  {</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> fn(<span class="stringliteral">"autopublish"</span>);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> fn;</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#ab6966ab13cff880801240215a2904865"> 228</a></span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &CAutoPublishData::fileAppendix()</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  {</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> a(<span class="stringliteral">".json"</span>);</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">return</span> a;</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#acb940f0a8cd98d469c32ca8b4b5649c8"> 234</a></span>  <span class="keywordtype">bool</span> CAutoPublishData::existAutoPublishFiles(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &dirPath)</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  {</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">return</span> findAndCleanupPublishFiles(dirPath).<a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html#size">size</a>() > 0;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_black_misc_1_1_simulation_1_1_c_auto_publish_data.html#a3bb20e80cf60a724f0b02c1bab85c1cc"> 239</a></span>  <span class="keywordtype">int</span> CAutoPublishData::deleteAutoPublishFiles(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &dirPath)</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  {</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> fileList = findAndCleanupPublishFiles(dirPath);</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">if</span> (fileList.<a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordtype">int</span> c = 0;</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &file : fileList)</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  {</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> fn = <a class="code" href="class_black_misc_1_1_c_file_utils.html#a1b130394cb8ec6ca700057089bf3476c">CFileUtils::appendFilePaths</a>(dirPath, file);</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qfile.html">QFile</a> f(fn);</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keywordflow">if</span> (!f.<a class="codeRef" href="http://doc.qt.io/qt-5/qfile.html#exists-1">exists</a>()) { <span class="keywordflow">continue</span>; }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">if</span> (f.<a class="codeRef" href="http://doc.qt.io/qt-5/qfile.html#remove">remove</a>()) { c++; }</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  }</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">return</span> c;</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> CAutoPublishData::findAndCleanupPublishFiles(<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &dirPath)</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  {</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qdir.html">QDir</a> dir(dirPath);</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordflow">if</span> (!dir.exists()) { <span class="keywordflow">return</span> {}; }</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> filter = fileBaseName() % u<span class="charliteral">'*'</span> % fileAppendix();</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> filters({ filter });</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  dir.setNameFilters(filters);</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  dir.setFilter(<a class="codeRef" href="http://doc.qt.io/qt-5/qdir.html#Filter-enum">QDir::Files</a> | <a class="codeRef" href="http://doc.qt.io/qt-5/qdir.html#Filter-enum">QDir::NoDotAndDotDot</a> | <a class="codeRef" href="http://doc.qt.io/qt-5/qdir.html#Filter-enum">QDir::NoSymLinks</a>);</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> fileList = dir.entryList();</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">if</span> (fileList.<a class="codeRef" href="http://doc.qt.io/qt-5/qlist.html#isEmpty">isEmpty</a>()) { <span class="keywordflow">return</span> fileList; }</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="comment">// avoid outdated files (e.g. if format changes)</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a> correctedList;</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html">QDateTime</a> deadline = <a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html#currentDateTimeUtc">QDateTime::currentDateTimeUtc</a>().<a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html#addDays">addDays</a>(-30);</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qstring.html">QString</a> &fn : fileList)</div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  {</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qfileinfo.html">QFileInfo</a> fi(fn.contains(dir.absolutePath()) ? fn : <a class="code" href="class_black_misc_1_1_c_file_utils.html#aa85eb1d3f763a76b0a762f4d74021e5e">CFileUtils::appendFilePathsAndFixUnc</a>(dir.absolutePath(), fn));</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">if</span> (!fi.exists()) { <span class="keywordflow">continue</span>; }</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">const</span> <a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html">QDateTime</a> created = fi.birthTime().<a class="codeRef" href="http://doc.qt.io/qt-5/qdatetime.html#toUTC">toUTC</a>();</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">if</span> (deadline < created)</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  {</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  correctedList << fn;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  }</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  {</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="codeRef" href="http://doc.qt.io/qt-5/qfile.html">QFile</a> deleteFile(fn);</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  deleteFile.remove();</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  }</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  }</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">return</span> correctedList;</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  }</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  </div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> } <span class="comment">// namespace</span></div>
<div class="ttc" id="aautopublishdata_8h_html"><div class="ttname"><a href="autopublishdata_8h.html">autopublishdata.h</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_file_utils_html_a1b130394cb8ec6ca700057089bf3476c"><div class="ttname"><a href="class_black_misc_1_1_c_file_utils.html#a1b130394cb8ec6ca700057089bf3476c">BlackMisc::CFileUtils::appendFilePaths</a></div><div class="ttdeci">static QString appendFilePaths(const QString &path1, const QString &path2)</div><div class="ttdoc">Append file paths.</div><div class="ttdef"><b>Definition:</b> <a href="fileutils_8cpp_source.html#l00093">fileutils.cpp:93</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_file_utils_html_a1f793fccc0df77068ec4b78869eb4752"><div class="ttname"><a href="class_black_misc_1_1_c_file_utils.html#a1f793fccc0df77068ec4b78869eb4752">BlackMisc::CFileUtils::writeStringToFile</a></div><div class="ttdeci">static bool writeStringToFile(const QString &content, const QString &fileNameAndPath)</div><div class="ttdoc">Write string to text file.</div><div class="ttdef"><b>Definition:</b> <a href="fileutils_8cpp_source.html#l00038">fileutils.cpp:38</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_file_utils_html_a1fa7111a3b58413ccb555150091d9452"><div class="ttname"><a href="class_black_misc_1_1_c_file_utils.html#a1fa7111a3b58413ccb555150091d9452">BlackMisc::CFileUtils::readFileToString</a></div><div class="ttdeci">static QString readFileToString(const QString &fileNameAndPath)</div><div class="ttdoc">Read file into string.</div><div class="ttdef"><b>Definition:</b> <a href="fileutils_8cpp_source.html#l00066">fileutils.cpp:66</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_file_utils_html_aa85eb1d3f763a76b0a762f4d74021e5e"><div class="ttname"><a href="class_black_misc_1_1_c_file_utils.html#aa85eb1d3f763a76b0a762f4d74021e5e">BlackMisc::CFileUtils::appendFilePathsAndFixUnc</a></div><div class="ttdeci">static QString appendFilePathsAndFixUnc(const QString &path1, const QString &path2)</div><div class="ttdoc">Append file paths.</div><div class="ttdef"><b>Definition:</b> <a href="fileutils_8cpp_source.html#l00106">fileutils.cpp:106</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_log_categories_html_a17df4ee0ed0d66d07c8d07b18c01c79f"><div class="ttname"><a href="class_black_misc_1_1_c_log_categories.html#a17df4ee0ed0d66d07c8d07b18c01c79f">BlackMisc::CLogCategories::mapping</a></div><div class="ttdeci">static const QString & mapping()</div><div class="ttdoc">Mapping.</div><div class="ttdef"><b>Definition:</b> <a href="logcategories_8h_source.html#l00116">logcategories.h:116</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_log_categories_html_ad5d4fe1440e237d4ab0afa5c824f0bc7"><div class="ttname"><a href="class_black_misc_1_1_c_log_categories.html#ad5d4fe1440e237d4ab0afa5c824f0bc7">BlackMisc::CLogCategories::webservice</a></div><div class="ttdeci">static const QString & webservice()</div><div class="ttdoc">Webservice.</div><div class="ttdef"><b>Definition:</b> <a href="logcategories_8h_source.html#l00109">logcategories.h:109</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_log_category_list_html"><div class="ttname"><a href="class_black_misc_1_1_c_log_category_list.html">BlackMisc::CLogCategoryList</a></div><div class="ttdoc">A sequence of log categories.</div><div class="ttdef"><b>Definition:</b> <a href="logcategorylist_8h_source.html#l00034">logcategorylist.h:37</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_message_base_html_a0882751cc1af54a56c7246cb8c0b6a72"><div class="ttname"><a href="class_black_misc_1_1_c_message_base.html#a0882751cc1af54a56c7246cb8c0b6a72">BlackMisc::CMessageBase::validationError</a></div><div class="ttdeci">Derived & validationError(const char16_t(&format)[N])</div><div class="ttdoc">Set the severity to error, providing a format string, and adding the validation category.</div><div class="ttdef"><b>Definition:</b> <a href="statusmessage_8h_source.html#l00280">statusmessage.h:280</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_message_base_html_a3006e244f3fd49fcd921ea0774285391"><div class="ttname"><a href="class_black_misc_1_1_c_message_base.html#a3006e244f3fd49fcd921ea0774285391">BlackMisc::CMessageBase::validationWarning</a></div><div class="ttdeci">Derived & validationWarning(const char16_t(&format)[N])</div><div class="ttdoc">Set the severity to warning, providing a format string, and adding the validation category.</div><div class="ttdef"><b>Definition:</b> <a href="statusmessage_8h_source.html#l00265">statusmessage.h:265</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_sequence_html_a26e7c3866dc7a18974b18d505346df35"><div class="ttname"><a href="class_black_misc_1_1_c_sequence.html#a26e7c3866dc7a18974b18d505346df35">BlackMisc::CSequence::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdoc">Returns number of elements in the sequence.</div><div class="ttdef"><b>Definition:</b> <a href="sequence_8h_source.html#l00274">sequence.h:274</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_sequence_html_a3b1a591f9338825e0364e940f8e06cb0"><div class="ttname"><a href="class_black_misc_1_1_c_sequence.html#a3b1a591f9338825e0364e940f8e06cb0">BlackMisc::CSequence::push_back</a></div><div class="ttdeci">void push_back(const T &value)</div><div class="ttdoc">Appends an element at the end of the sequence.</div><div class="ttdef"><b>Definition:</b> <a href="sequence_8h_source.html#l00306">sequence.h:306</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_sequence_html_aa68fa203f1b72b6e94834d6b85646dde"><div class="ttname"><a href="class_black_misc_1_1_c_sequence.html#aa68fa203f1b72b6e94834d6b85646dde">BlackMisc::CSequence::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdoc">Synonym for empty.</div><div class="ttdef"><b>Definition:</b> <a href="sequence_8h_source.html#l00286">sequence.h:286</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_set_builder_html"><div class="ttname"><a href="class_black_misc_1_1_c_set_builder.html">BlackMisc::CSetBuilder</a></div><div class="ttdoc">Build a QSet more efficiently when calling insert() in a for loop.</div><div class="ttdef"><b>Definition:</b> <a href="setbuilder_8h_source.html#l00025">setbuilder.h:26</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_set_builder_html_a2ab8ff4171f8d30de370f63404df493b"><div class="ttname"><a href="class_black_misc_1_1_c_set_builder.html#a2ab8ff4171f8d30de370f63404df493b">BlackMisc::CSetBuilder::isEmpty</a></div><div class="ttdeci">bool isEmpty() const</div><div class="ttdoc">True if no elements have been inserted.</div><div class="ttdef"><b>Definition:</b> <a href="setbuilder_8h_source.html#l00035">setbuilder.h:35</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_set_builder_html_a508312059aeb865275da3ec604bb53d6"><div class="ttname"><a href="class_black_misc_1_1_c_set_builder.html#a508312059aeb865275da3ec604bb53d6">BlackMisc::CSetBuilder::insert</a></div><div class="ttdeci">void insert(const T &value)</div><div class="ttdoc">Add an element to the set. Runs in amortized constant time.</div><div class="ttdef"><b>Definition:</b> <a href="setbuilder_8h_source.html#l00030">setbuilder.h:30</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_status_message_html"><div class="ttname"><a href="class_black_misc_1_1_c_status_message.html">BlackMisc::CStatusMessage</a></div><div class="ttdoc">Streamable status message, e.g.</div><div class="ttdef"><b>Definition:</b> <a href="statusmessage_8h_source.html#l00386">statusmessage.h:391</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_status_message_list_html"><div class="ttname"><a href="class_black_misc_1_1_c_status_message_list.html">BlackMisc::CStatusMessageList</a></div><div class="ttdoc">Status messages, e.g. from Core -> GUI.</div><div class="ttdef"><b>Definition:</b> <a href="statusmessagelist_8h_source.html#l00028">statusmessagelist.h:33</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_c_swift_directories_html_abbdc945f9a7b9cb884bfe042531ec128"><div class="ttname"><a href="class_black_misc_1_1_c_swift_directories.html#abbdc945f9a7b9cb884bfe042531ec128">BlackMisc::CSwiftDirectories::logDirectory</a></div><div class="ttdeci">static const QString & logDirectory()</div><div class="ttdoc">Directory for log files.</div></div>
<div class="ttc" id="aclass_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key_html_a7961ec8eab13b5d7b054eaf6e136dab3"><div class="ttname"><a href="class_black_misc_1_1_db_1_1_i_datastore_object_with_integer_key.html#a7961ec8eab13b5d7b054eaf6e136dab3">BlackMisc::Db::IDatastoreObjectWithIntegerKey::hasValidDbKey</a></div><div class="ttdeci">bool hasValidDbKey() const</div><div class="ttdoc">Has valid DB key.</div><div class="ttdef"><b>Definition:</b> <a href="datastore_8h_source.html#l00102">datastore.h:102</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_physical_quantities_1_1_c_length_html"><div class="ttname"><a href="class_black_misc_1_1_physical_quantities_1_1_c_length.html">BlackMisc::PhysicalQuantities::CLength</a></div><div class="ttdoc">Physical unit length (length)</div><div class="ttdef"><b>Definition:</b> <a href="length_8h_source.html#l00016">length.h:17</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_physical_quantities_1_1_c_length_unit_html_ac671b3a6df4b07c55fbe70a48f1627b2"><div class="ttname"><a href="class_black_misc_1_1_physical_quantities_1_1_c_length_unit.html#ac671b3a6df4b07c55fbe70a48f1627b2">BlackMisc::PhysicalQuantities::CLengthUnit::ft</a></div><div class="ttdeci">static CLengthUnit ft()</div><div class="ttdoc">Foot ft.</div><div class="ttdef"><b>Definition:</b> <a href="units_8h_source.html#l00154">units.h:154</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_physical_quantities_1_1_c_physical_quantity_html_aff90526c73f7bb7ff9411d9a335456c6"><div class="ttname"><a href="class_black_misc_1_1_physical_quantities_1_1_c_physical_quantity.html#aff90526c73f7bb7ff9411d9a335456c6">BlackMisc::PhysicalQuantities::CPhysicalQuantity::isNull</a></div><div class="ttdeci">bool isNull() const</div><div class="ttdoc">Is quantity null?</div><div class="ttdef"><b>Definition:</b> <a href="physicalquantity_8cpp_source.html#l00288">physicalquantity.cpp:288</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_aircraft_model_html"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html">BlackMisc::Simulation::CAircraftModel</a></div><div class="ttdoc">Aircraft model (used by another pilot, my models on disk)</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmodel_8h_source.html#l00069">aircraftmodel.h:73</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_aircraft_model_html_a71d993c8e07475855747f96ff490a18e"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html#a71d993c8e07475855747f96ff490a18e">BlackMisc::Simulation::CAircraftModel::getSimulator</a></div><div class="ttdeci">CSimulatorInfo getSimulator() const</div><div class="ttdoc">Simulator info.</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmodel_8h_source.html#l00357">aircraftmodel.h:357</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_aircraft_model_html_abd80ab102e4c2a3231eb4a71e875c281"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_aircraft_model.html#abd80ab102e4c2a3231eb4a71e875c281">BlackMisc::Simulation::CAircraftModel::getCG</a></div><div class="ttdeci">const PhysicalQuantities::CLength & getCG() const</div><div class="ttdoc">Get center of gravity.</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmodel_8h_source.html#l00312">aircraftmodel.h:312</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_aircraft_model_list_html"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_aircraft_model_list.html">BlackMisc::Simulation::CAircraftModelList</a></div><div class="ttdoc">Value object encapsulating a list of aircraft models.</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmodellist_8h_source.html#l00052">aircraftmodellist.h:58</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_aircraft_model_list_html_a156b63a94333eaccc9274e2744ae579b"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_aircraft_model_list.html#a156b63a94333eaccc9274e2744ae579b">BlackMisc::Simulation::CAircraftModelList::findFirstByModelStringOrDefault</a></div><div class="ttdeci">CAircraftModel findFirstByModelStringOrDefault(const QString &modelString, Qt::CaseSensitivity sensitivity=Qt::CaseInsensitive) const</div><div class="ttdoc">Find first by model string.</div><div class="ttdef"><b>Definition:</b> <a href="aircraftmodellist_8cpp_source.html#l00105">aircraftmodellist.cpp:105</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_simulator_info_html"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html">BlackMisc::Simulation::CSimulatorInfo</a></div><div class="ttdoc">Simple hardcoded info about the corresponding simulator.</div><div class="ttdef"><b>Definition:</b> <a href="simulatorinfo_8h_source.html#l00040">simulatorinfo.h:41</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_simulator_info_html_a1c500dd06d851e93eaac5dcd6205da80"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html#a1c500dd06d851e93eaac5dcd6205da80">BlackMisc::Simulation::CSimulatorInfo::isSingleSimulator</a></div><div class="ttdeci">bool isSingleSimulator() const</div><div class="ttdoc">Single simulator selected.</div><div class="ttdef"><b>Definition:</b> <a href="simulatorinfo_8cpp_source.html#l00089">simulatorinfo.cpp:89</a></div></div>
<div class="ttc" id="aclass_black_misc_1_1_simulation_1_1_c_simulator_info_html_af730df60c6817797045f690b8e0fb461"><div class="ttname"><a href="class_black_misc_1_1_simulation_1_1_c_simulator_info.html#af730df60c6817797045f690b8e0fb461">BlackMisc::Simulation::CSimulatorInfo::matchesAny</a></div><div class="ttdeci">bool matchesAny(const CSimulatorInfo &otherInfo) const</div><div class="ttdoc">Matches any simulator.</div><div class="ttdef"><b>Definition:</b> <a href="simulatorinfo_8cpp_source.html#l00139">simulatorinfo.cpp:139</a></div></div>
<div class="ttc" id="afileutils_8h_html"><div class="ttname"><a href="fileutils_8h.html">fileutils.h</a></div></div>
<div class="ttc" id="agroup___j_s_o_n_html_gac8c57f1096b76af738ec89e6adc89807"><div class="ttname"><a href="group___j_s_o_n.html#gac8c57f1096b76af738ec89e6adc89807">BlackMisc::Json::jsonArrayFromString</a></div><div class="ttdeci">QJsonArray jsonArrayFromString(const QString &json)</div><div class="ttdoc">JSON Array from string.</div><div class="ttdef"><b>Definition:</b> <a href="json_8cpp_source.html#l00432">json.cpp:432</a></div></div>
<div class="ttc" id="ajson_8h_html"><div class="ttname"><a href="json_8h.html">json.h</a></div></div>
<div class="ttc" id="alogcategories_8h_html"><div class="ttname"><a href="logcategories_8h.html">logcategories.h</a></div></div>
<div class="ttc" id="anamespace_black_misc_html_a7a70956fc48706f6a748544dba781b46"><div class="ttname"><a href="namespace_black_misc.html#a7a70956fc48706f6a748544dba781b46">BlackMisc::makePairsRange</a></div><div class="ttdeci">auto makePairsRange(const T &container)</div><div class="ttdoc">Returns a const CRange for iterating over the keys and values of a Qt associative container.</div><div class="ttdef"><b>Definition:</b> <a href="range_8h_source.html#l00367">range.h:367</a></div></div>
<div class="ttc" id="aqdatetime_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdatetime.html">QDateTime</a></div></div>
<div class="ttc" id="aqdatetime_html_addDays"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdatetime.html#addDays">QDateTime::addDays</a></div><div class="ttdeci">QDateTime addDays(qint64 ndays) const const</div></div>
<div class="ttc" id="aqdatetime_html_currentDateTimeUtc"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdatetime.html#currentDateTimeUtc">QDateTime::currentDateTimeUtc</a></div><div class="ttdeci">QDateTime currentDateTimeUtc()</div></div>
<div class="ttc" id="aqdatetime_html_toString-1"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdatetime.html#toString-1">QDateTime::toString</a></div><div class="ttdeci">QString toString(Qt::DateFormat format) const const</div></div>
<div class="ttc" id="aqdatetime_html_toUTC"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdatetime.html#toUTC">QDateTime::toUTC</a></div><div class="ttdeci">QDateTime toUTC() const const</div></div>
<div class="ttc" id="aqdir_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdir.html">QDir</a></div></div>
<div class="ttc" id="aqdir_html_Filter-enum"><div class="ttname"><a href="http://doc.qt.io/qt-5/qdir.html#Filter-enum">QDir::Files</a></div><div class="ttdeci">Files</div></div>
<div class="ttc" id="aqfile_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qfile.html">QFile</a></div></div>
<div class="ttc" id="aqfile_html_exists-1"><div class="ttname"><a href="http://doc.qt.io/qt-5/qfile.html#exists-1">QFile::exists</a></div><div class="ttdeci">bool exists() const const</div></div>
<div class="ttc" id="aqfile_html_remove"><div class="ttname"><a href="http://doc.qt.io/qt-5/qfile.html#remove">QFile::remove</a></div><div class="ttdeci">bool remove()</div></div>
<div class="ttc" id="aqfileinfo_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qfileinfo.html">QFileInfo</a></div></div>
<div class="ttc" id="aqjsonarray_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qjsonarray.html">QJsonArray</a></div></div>
<div class="ttc" id="aqjsonarray_html_isEmpty"><div class="ttname"><a href="http://doc.qt.io/qt-5/qjsonarray.html#isEmpty">QJsonArray::isEmpty</a></div><div class="ttdeci">bool isEmpty() const const</div></div>
<div class="ttc" id="aqjsonobject_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qjsonobject.html">QJsonObject</a></div></div>
<div class="ttc" id="aqjsonvalue_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qjsonvalue.html">QJsonValue</a></div></div>
<div class="ttc" id="aqlist_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></div></div>
<div class="ttc" id="aqlist_html_isEmpty"><div class="ttname"><a href="http://doc.qt.io/qt-5/qlist.html#isEmpty">QList::isEmpty</a></div><div class="ttdeci">bool isEmpty() const const</div></div>
<div class="ttc" id="aqlist_html_size"><div class="ttname"><a href="http://doc.qt.io/qt-5/qlist.html#size">QList::size</a></div><div class="ttdeci">int size() const const</div></div>
<div class="ttc" id="aqset_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qset.html">QSet< QString ></a></div></div>
<div class="ttc" id="aqset_html_unite"><div class="ttname"><a href="http://doc.qt.io/qt-5/qset.html#unite">QSet::unite</a></div><div class="ttdeci">QSet< T > & unite(const QSet< T > &other)</div></div>
<div class="ttc" id="aqstring_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html">QString</a></div></div>
<div class="ttc" id="aqstring_html_arg-1"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#arg-1">QString::arg</a></div><div class="ttdeci">QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const</div></div>
<div class="ttc" id="aqstring_html_chop"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#chop">QString::chop</a></div><div class="ttdeci">void chop(int n)</div></div>
<div class="ttc" id="aqstring_html_isEmpty"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#isEmpty">QString::isEmpty</a></div><div class="ttdeci">bool isEmpty() const const</div></div>
<div class="ttc" id="aqstring_html_size"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#size">QString::size</a></div><div class="ttdeci">int size() const const</div></div>
<div class="ttc" id="aqstring_html_startsWith"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#startsWith">QString::startsWith</a></div><div class="ttdeci">bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const</div></div>
<div class="ttc" id="aqstring_html_toUpper"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstring.html#toUpper">QString::toUpper</a></div><div class="ttdeci">QString toUpper() const const</div></div>
<div class="ttc" id="aqstringlist_html"><div class="ttname"><a href="http://doc.qt.io/qt-5/qstringlist.html">QStringList</a></div></div>
<div class="ttc" id="aqt_html_CaseSensitivity-enum"><div class="ttname"><a href="http://doc.qt.io/qt-5/qt.html#CaseSensitivity-enum">Qt::CaseInsensitive</a></div><div class="ttdeci">CaseInsensitive</div></div>
<div class="ttc" id="asetbuilder_8h_html"><div class="ttname"><a href="setbuilder_8h.html">setbuilder.h</a></div></div>
<div class="ttc" id="aswiftdirectories_8h_html"><div class="ttname"><a href="swiftdirectories_8h.html">swiftdirectories.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Dec 3 2023 18:38:40 for swift by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>