-
Notifications
You must be signed in to change notification settings - Fork 0
/
al___file_8hpp_source.html
588 lines (586 loc) · 96.9 KB
/
al___file_8hpp_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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<!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>Allolib: al_File.hpp 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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" />
</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">Allolib
 <span id="projectnumber">1.0</span>
</div>
<div id="projectbrief">C++ Components For Interactive Multimedia</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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('al___file_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">al_File.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef INCLUDE_AL_FILE_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define INCLUDE_AL_FILE_HPP</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="comment">/* Allocore --</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Multimedia / virtual environment application class library</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span> </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> UCSB. Copyright (C) 2012. The Regents of the University of California. All</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> rights reserved.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span> </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> modification, are permitted provided that the following conditions are</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> met:</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"></span> </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> copyright notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> documentation and/or other materials provided with the</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> distribution.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"></span> </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> Neither the name of the University of California nor the names</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> of its contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> this software without specific prior written permission.</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"></span> </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"></span> </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> File description:</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> Utilities for file management</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"></span> </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> File author(s):</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> Graham Wakefield, 2010, [email protected]</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> Lance Putnam, 2010, [email protected]</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> Keehong Youn, 2017, [email protected]</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#include <stdio.h></span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include <algorithm></span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#include <functional></span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#include <iostream></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#include <list></span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#include <mutex></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#include <vector></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> <span class="preprocessor">#ifndef AL_FILE_DELIMITER_STR</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor">#ifdef AL_WINDOWS</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#define AL_FILE_DELIMITER_STR "\\"</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#define AL_FILE_DELIMITER_STR "/"</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#endif</span></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="preprocessor">#define AL_FILE_DELIMITER (AL_FILE_DELIMITER_STR[0])</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor">#define AL_PATH_MAX (4096)</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  al_nsec; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">typedef</span> <span class="keywordtype">double</span> al_sec; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">namespace </span><a class="code" href="namespaceal.html">al</a> {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> std::string demangle(<span class="keyword">const</span> <span class="keywordtype">char</span> *name); <span class="comment">// Utility function.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html"> 81</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classal_1_1_file_path.html">FilePath</a> {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a>() {}</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#ab61b4f163a41be2e9eb55e5e5998632c"> 87</a></span>  <a class="code" href="classal_1_1_file_path.html#ab61b4f163a41be2e9eb55e5e5998632c">FilePath</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3">file</a>, <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file_path.html#a4d50be4fae30b6cef4d4f70f6b8a7d77">path</a>);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a24570773e331fdfecc5e7ed007cd7ec2"> 91</a></span>  <span class="keyword">explicit</span> <a class="code" href="classal_1_1_file_path.html#a24570773e331fdfecc5e7ed007cd7ec2">FilePath</a>(<span class="keyword">const</span> std::string &fullpath);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3"> 94</a></span>  <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3">file</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFile; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a4d50be4fae30b6cef4d4f70f6b8a7d77"> 97</a></span>  <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file_path.html#a4d50be4fae30b6cef4d4f70f6b8a7d77">path</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPath; }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#aed2f46d1394da0dfb64710796fa575bb"> 100</a></span>  std::string <a class="code" href="classal_1_1_file_path.html#aed2f46d1394da0dfb64710796fa575bb">filepath</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_file_path.html#a4d50be4fae30b6cef4d4f70f6b8a7d77">path</a>() + <a class="code" href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3">file</a>(); }</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a594ef26de1789a6feb02d93442b2bf84"> 103</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file_path.html#a594ef26de1789a6feb02d93442b2bf84">valid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3">file</a>() != <span class="stringliteral">""</span>; }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a9edcb00e16a377ede0441e4cf0b286a3"> 106</a></span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> &<a class="code" href="classal_1_1_file_path.html#a9edcb00e16a377ede0441e4cf0b286a3">file</a>(<span class="keyword">const</span> std::string &v) {</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  mFile = v;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classal_1_1_file_path.html#a7b79a1a137debe2711f60c75ffec58a0"> 112</a></span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> &<a class="code" href="classal_1_1_file_path.html#a7b79a1a137debe2711f60c75ffec58a0">path</a>(<span class="keyword">const</span> std::string &v) {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  mPath = v;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  std::string mPath;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  std::string mFile;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> };</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#if 0 </span><span class="comment">/* commenting out FileInfo */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">class </span>FileInfo{</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">enum</span> Type{</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  NOFILE, </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  REG, </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  DIR, </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  CHR, </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  BLOCK, </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  PIPE, </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  LINK, </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  SOCKET, </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  UNKNOWN = 127 </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  };</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  FileInfo& type(Type v){ mType=v; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">const</span> Type type()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mType; }</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  FileInfo& name(<span class="keyword">const</span> std::string& v){ mName=v; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">const</span> std::string& name()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  Type mType;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  std::string mName;</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> <span class="preprocessor">#endif </span><span class="comment">/* commenting out FileInfo */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classal_1_1_file.html"> 166</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_file.html">File</a> {</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a829a06f7efdcd7787f32d5e1e97aa563"> 171</a></span>  <a class="code" href="classal_1_1_file.html#a829a06f7efdcd7787f32d5e1e97aa563">File</a>(std::string <a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a> = <span class="stringliteral">"."</span>, std::string <a class="code" href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49">mode</a> = <span class="stringliteral">"r"</span>, <span class="keywordtype">bool</span> open_ = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classal_1_1_file.html#a829a06f7efdcd7787f32d5e1e97aa563">File</a>(<span class="keyword">const</span> <a class="code" href="classal_1_1_file_path.html">FilePath</a> &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>, std::string <a class="code" href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49">mode</a> = <span class="stringliteral">"r"</span>, <span class="keywordtype">bool</span> open_ = <span class="keyword">false</span>);</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="code" href="classal_1_1_file.html">File</a>();</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#aa86afc7898e5b1ff403a6a317019fbf1"> 181</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#aa86afc7898e5b1ff403a6a317019fbf1">open</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>, <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49">mode</a> = <span class="stringliteral">"r"</span>);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#af617af4837775efb4932ef3643485101"> 187</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#af617af4837775efb4932ef3643485101">open</a>();</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a60ee649d17f3f3c9a3f1a15b2f84c09a"> 190</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_file.html#a60ee649d17f3f3c9a3f1a15b2f84c09a">close</a>();</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ab1c963ce96e4fe969c990296954b744d"> 196</a></span>  <a class="code" href="classal_1_1_file.html">File</a> &<a class="code" href="classal_1_1_file.html#ab1c963ce96e4fe969c990296954b744d">mode</a>(<span class="keyword">const</span> std::string &v) {</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  mMode = v;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a4c6e5d9d5c68a3e29aecf6b02aca0fd6"> 202</a></span>  <a class="code" href="classal_1_1_file.html">File</a> &<a class="code" href="classal_1_1_file.html#a4c6e5d9d5c68a3e29aecf6b02aca0fd6">path</a>(<span class="keyword">const</span> std::string &v) {</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  mPath = v;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</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>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a86ede98b9fecc66d2c21d521d9f7298c"> 208</a></span>  <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#a86ede98b9fecc66d2c21d521d9f7298c">write</a>(<span class="keyword">const</span> std::string &v) {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">return</span> <a class="code" href="classal_1_1_file.html#a86ede98b9fecc66d2c21d521d9f7298c">write</a>(v.data(), 1, <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(v.length()));</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  }</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a901f08baca29bb7849140a57b2a0aaf7"> 213</a></span>  <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#a901f08baca29bb7849140a57b2a0aaf7">write</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *v, <span class="keywordtype">int</span> itemSizeInBytes, <span class="keywordtype">int</span> items = 1) {</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">int</span> itemsWritten = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(fwrite(v, itemSizeInBytes, items, mFP));</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  mSizeBytes += itemsWritten * itemSizeInBytes;</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">return</span> itemsWritten;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#aa531229c6f38a5464419ab804251572e"> 220</a></span>  <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#aa531229c6f38a5464419ab804251572e">read</a>(<span class="keywordtype">void</span> *v, <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f">size</a>, <span class="keywordtype">int</span> items = 1) {</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(fread(v, <a class="code" href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f">size</a>, items, mFP));</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a9de7861a4851fe35974cae41266f5d96"> 225</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classal_1_1_file.html#a9de7861a4851fe35974cae41266f5d96">readAll</a>();</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  </div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#adcfb9e799a6ca441c1494d4233b20f2f"> 228</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#adcfb9e799a6ca441c1494d4233b20f2f">opened</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0 != mFP; }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49"> 231</a></span>  <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49">mode</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMode; }</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3"> 234</a></span>  <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPath; }</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f"> 237</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSizeBytes; }</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">// al_sec modified() const;</span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="comment">// al_sec accessed() const;</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="comment">// al_sec created() const;</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="comment">// size_t sizeFile() const;</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="comment">// size_t storage() const;</span></div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  </div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ac3779d7b0d46702cab57f0c2ce09063c"> 257</a></span>  FILE *<a class="code" href="classal_1_1_file.html#ac3779d7b0d46702cab57f0c2ce09063c">filePointer</a>() { <span class="keywordflow">return</span> mFP; }</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a46304f1a8f1bd43fc8e17b3781d52e1b"> 260</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a46304f1a8f1bd43fc8e17b3781d52e1b">read</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  </div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a440e9f1b29c167f48066ba67c26d7e8c"> 263</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#a440e9f1b29c167f48066ba67c26d7e8c">write</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>, <span class="keyword">const</span> <span class="keywordtype">void</span> *v, <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f">size</a>,</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">int</span> items = 1);</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  </div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a88df538f4f000155e6af8dd729f47374"> 267</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_file.html#a88df538f4f000155e6af8dd729f47374">write</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>, <span class="keyword">const</span> std::string &data);</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ab01277fcafec5433b10b840654349553"> 271</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#ab01277fcafec5433b10b840654349553">copy</a>(<span class="keyword">const</span> std::string &srcPath, <span class="keyword">const</span> std::string &dstPath,</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bufferSize = 1e6);</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a0e7bf5479e218f3efb1e6713faf610c2"> 275</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#a0e7bf5479e218f3efb1e6713faf610c2">remove</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  </div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a6397233f9ec5dae98090fd6741bad4e7"> 281</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a6397233f9ec5dae98090fd6741bad4e7">conformDirectory</a>(<span class="keyword">const</span> std::string &dir);</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  </div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a522742d74ed2a290eeec4776dbb9c74e"> 288</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a522742d74ed2a290eeec4776dbb9c74e">conformPathToOS</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a28df276d5447dc6ca1b96a9d897453de"> 291</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a28df276d5447dc6ca1b96a9d897453de">absolutePath</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  </div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> isRelativePath(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  </div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a991408707b473e595764ea7fd91ff931"> 298</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a991408707b473e595764ea7fd91ff931">currentPath</a>();</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  </div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> isSamePath(<span class="keyword">const</span> std::string &path1, <span class="keyword">const</span> std::string &path2);</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  </div>
<div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a78985da2e95be25b034c58dd38512593"> 308</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a78985da2e95be25b034c58dd38512593">baseName</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>,</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">const</span> std::string &suffix = <span class="stringliteral">""</span>);</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a83933a2b25f93f5246c817778efdc9f4"> 316</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#a83933a2b25f93f5246c817778efdc9f4">directory</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  </div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ab51851f152ce388ebcce35e56e620bbc"> 322</a></span>  <span class="keyword">static</span> std::string <a class="code" href="classal_1_1_file.html#ab51851f152ce388ebcce35e56e620bbc">extension</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a1e33e0efc5f01ec5f5f2c157b9fa189f"> 325</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#a1e33e0efc5f01ec5f5f2c157b9fa189f">exists</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div>
<div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a42a8b075f057bb45d4e6b9b28b631bf0"> 328</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#a42a8b075f057bb45d4e6b9b28b631bf0">exists</a>(<span class="keyword">const</span> std::string &name, <span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>) {</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">return</span> <a class="code" href="classal_1_1_file.html#a1e33e0efc5f01ec5f5f2c157b9fa189f">exists</a>(<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a> + name);</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  }</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  </div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#aaf1c87489c832dc8501273b5b59ebd99"> 333</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#aaf1c87489c832dc8501273b5b59ebd99">isDirectory</a>(<span class="keyword">const</span> std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  </div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  </div>
<div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#ad7eff527394ddd2ed199a04262bcda64"> 344</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#ad7eff527394ddd2ed199a04262bcda64">searchBack</a>(std::string &rootPath, <span class="keyword">const</span> std::string &matchPath,</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordtype">int</span> maxDepth = 6);</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  </div>
<div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="classal_1_1_file.html#a049f22b5cf7098ddd7d71be7a499e226"> 353</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_file.html#a049f22b5cf7098ddd7d71be7a499e226">searchBack</a>(std::string &<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>, <span class="keywordtype">int</span> maxDepth = 6);</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  </div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keyword">static</span> al_sec modificationTime(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">path</a>);</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="comment">// TODO: Implement these.</span></div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="comment">// static al_sec modified(const std::string& path){ return</span></div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="comment">// File(path).modified(); } static al_sec accessed(const std::string& path){</span></div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="comment">// return File(path).accessed(); } static al_sec created (const std::string&</span></div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="comment">// path){ return File(path).created(); } static size_t sizeFile(const</span></div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="comment">// std::string& path){ return File(path).sizeFile(); } static size_t storage</span></div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="comment">// (const std::string& path){ return File(path).storage(); }</span></div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  </div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="comment">// class Impl; Impl * mImpl;</span></div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  </div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  std::string mPath;</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  std::string mMode;</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="keywordtype">char</span> *mContent;</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordtype">size_t</span> mSizeBytes;</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  FILE *mFP;</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  </div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordtype">void</span> dtor();</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordtype">void</span> freeContent();</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordtype">void</span> allocContent(<span class="keywordtype">int</span> n);</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordtype">void</span> getSize();</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classal_1_1_dir.html">Dir</a>;</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> };</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  </div>
<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="classal_1_1_push_directory.html"> 381</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_push_directory.html">PushDirectory</a> {</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <a class="code" href="classal_1_1_push_directory.html">PushDirectory</a>(std::string directory, <span class="keywordtype">bool</span> verbose = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  </div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  ~<a class="code" href="classal_1_1_push_directory.html">PushDirectory</a>();</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  </div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordtype">char</span> previousDirectory[4096];</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordtype">bool</span> mVerbose;</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keyword">static</span> std::mutex mDirectoryLock; <span class="comment">// Protects all instances of PushDirectory</span></div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> };</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  </div>
<div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classal_1_1_dir.html"> 397</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_dir.html">Dir</a> {</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="comment">// Dir() {};</span></div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  </div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="comment">// Dir(std::string dirToOpen): mDirToOpen(dirToOpen) {};</span></div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  </div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="comment">// ~Dir() = default;</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  </div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  </div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="comment">// bool open(const std::string& dirPath);</span></div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  </div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  </div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="comment">// bool close();</span></div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  </div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  </div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="comment">// bool read();</span></div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  </div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="comment">// const FileInfo& entry() const { return mEntry; }</span></div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  </div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="comment">// bool rewind();</span></div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  </div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="comment">// static bool make(const std::string& path, bool recursive=true);</span></div>
<div class="line"><a name="l00433"></a><span class="lineno"><a class="line" href="classal_1_1_dir.html#a062745c0bf6e424d0a5e1db64af44c40"> 433</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_dir.html#a062745c0bf6e424d0a5e1db64af44c40">make</a>(<span class="keyword">const</span> std::string &path);</div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  </div>
<div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="classal_1_1_dir.html#a794759dccd21654f6dc848a891795984"> 436</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_dir.html#a794759dccd21654f6dc848a891795984">remove</a>(<span class="keyword">const</span> std::string &path);</div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  </div>
<div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="classal_1_1_dir.html#ae611dc5886d1b743720db8efa3b0c9fb"> 439</a></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_dir.html#ae611dc5886d1b743720db8efa3b0c9fb">removeRecursively</a>(<span class="keyword">const</span> std::string &path);</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  </div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="comment">// class Impl; Impl * mImpl;</span></div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="comment">// std::string mDirToOpen;</span></div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="comment">// FileInfo mEntry;</span></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> };</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  </div>
<div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="classal_1_1_file_list.html"> 450</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_file_list.html">FileList</a> {</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="keyword">typedef</span> std::vector<FilePath>::iterator iterator;</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  </div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <a class="code" href="classal_1_1_file_list.html">FileList</a>() : indx(0) {}</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  </div>
<div class="line"><a name="l00457"></a><span class="lineno"><a class="line" href="classal_1_1_file_list.html#a45a3ac6cf28b94c23e5c2d801341219e"> 457</a></span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> &<a class="code" href="classal_1_1_file_list.html#a45a3ac6cf28b94c23e5c2d801341219e">operator()</a>() { <span class="keywordflow">return</span> mFiles[indx]; }</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  </div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="comment">// FilePath& select(const std::string& filename);</span></div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  </div>
<div class="line"><a name="l00462"></a><span class="lineno"><a class="line" href="classal_1_1_file_list.html#a60bb8e41dafe0574ea95d1e9211c9cdf"> 462</a></span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> &<a class="code" href="classal_1_1_file_list.html#a60bb8e41dafe0574ea95d1e9211c9cdf">select</a>(<span class="keywordtype">int</span> i) {</div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  indx = i % count();</div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">return</span> (*<span class="keyword">this</span>)();</div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  }</div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> &next() {</div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  ++indx %= count();</div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keywordflow">return</span> (*<span class="keyword">this</span>)();</div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  }</div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  FilePath &prev() {</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  --indx;</div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keywordflow">if</span> (indx < 0)</div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  indx = count() - 1;</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordflow">return</span> (*<span class="keyword">this</span>)();</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  }</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  </div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordtype">int</span> count() { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(mFiles.size()); }</div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  </div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordtype">void</span> sort();</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  </div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keywordtype">void</span> print(std::ostream &stream = std::cout) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  </div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  FilePath &operator[](<span class="keywordtype">int</span> i) { <span class="keywordflow">return</span> mFiles[i]; }</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  iterator begin() { <span class="keywordflow">return</span> mFiles.begin(); }</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  iterator end() { <span class="keywordflow">return</span> mFiles.end(); }</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  </div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordtype">void</span> add(FilePath &fp) { mFiles.push_back(fp); }</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keywordtype">void</span> add(FilePath &&fp) { mFiles.push_back(fp); }</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordtype">void</span> add(FileList <span class="keyword">const</span> &fl) {</div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  mFiles.insert(mFiles.end(), fl.mFiles.begin(), fl.mFiles.end());</div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  }</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keywordtype">void</span> sort(<span class="keywordtype">bool</span> (*f)(FilePath, FilePath)) { <a class="code" href="group___math.html#ga316b5a2949ca945618aab0c4f53ac0c5">std::sort</a>(begin(), end(), f); }</div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  </div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordtype">int</span> indx;</div>
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  std::vector<FilePath> mFiles;</div>
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> };</div>
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  </div>
<div class="line"><a name="l00502"></a><span class="lineno"><a class="line" href="classal_1_1_search_paths.html"> 502</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_search_paths.html">SearchPaths</a> {</div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keyword">typedef</span> std::pair<std::string, bool> searchpath;</div>
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <span class="keyword">typedef</span> std::list<searchpath> searchpathlist;</div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keyword">typedef</span> std::list<searchpath>::iterator iterator;</div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  </div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <a class="code" href="classal_1_1_search_paths.html">SearchPaths</a>() {}</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <a class="code" href="classal_1_1_search_paths.html">SearchPaths</a>(<span class="keyword">const</span> std::string &file);</div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <a class="code" href="classal_1_1_search_paths.html">SearchPaths</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *<span class="keyword">const</span> argv[], <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <a class="code" href="classal_1_1_search_paths.html">SearchPaths</a>(<span class="keyword">const</span> <a class="code" href="classal_1_1_search_paths.html">SearchPaths</a> &cpy);</div>
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  </div>
<div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="classal_1_1_search_paths.html#a12485103c5645d0a1cc6541c7f8f14b5"> 514</a></span>  <a class="code" href="classal_1_1_file_path.html">FilePath</a> <a class="code" href="classal_1_1_search_paths.html#a12485103c5645d0a1cc6541c7f8f14b5">find</a>(<span class="keyword">const</span> std::string &filename);</div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <span class="comment">// FileList glob(const std::string& regex);</span></div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <a class="code" href="classal_1_1_file_list.html">FileList</a> filter(<span class="keywordtype">bool</span> (*f)(<a class="code" href="classal_1_1_file_path.html">FilePath</a> <span class="keyword">const</span> &));</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <a class="code" href="classal_1_1_file_list.html">FileList</a> listAll();</div>
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  </div>
<div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="classal_1_1_search_paths.html#ab9e1e2c2e06fb0f36c431fb07a9f8bae"> 520</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_search_paths.html#ab9e1e2c2e06fb0f36c431fb07a9f8bae">addSearchPath</a>(<span class="keyword">const</span> std::string &path, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="keywordtype">void</span> addRelativePath(std::string rel, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>) {</div>
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <a class="code" href="classal_1_1_search_paths.html#ab9e1e2c2e06fb0f36c431fb07a9f8bae">addSearchPath</a>(appPath() + rel, recursive);</div>
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  }</div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  </div>
<div class="line"><a name="l00527"></a><span class="lineno"><a class="line" href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055"> 527</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055">addAppPaths</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *<span class="keyword">const</span> argv[], <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055">addAppPaths</a>(<span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span> **argv, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055">addAppPaths</a>(std::string path, <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055">addAppPaths</a>(<span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>);</div>
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  </div>
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="keyword">const</span> std::string &appPath()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAppPath; }</div>
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  </div>
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordtype">void</span> print(std::ostream &stream = std::cout) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  </div>
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  iterator begin() { <span class="keywordflow">return</span> mSearchPaths.begin(); }</div>
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  iterator end() { <span class="keywordflow">return</span> mSearchPaths.end(); }</div>
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  </div>
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  std::list<searchpath> mSearchPaths;</div>
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  std::string mAppPath;</div>
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> };</div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  </div>
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="comment">// below are original to allolib and did not exist in AlloSystem</span></div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="comment">// TODO: NEED TO CLEAN THESE CALLS...</span></div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  </div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="comment">// not recursive, contains dirs</span></div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> FileList itemListInDir(std::string <span class="keyword">const</span> &dir);</div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  </div>
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="comment">// recursive, does not contain dirs</span></div>
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> FileList fileListFromDir(std::string <span class="keyword">const</span> &dir);</div>
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  </div>
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment">//</span></div>
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> FilePath searchFileFromDir(std::string <span class="keyword">const</span> &filename, std::string <span class="keyword">const</span> &dir);</div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  </div>
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="comment">// pass lambda with given signature, returns list of files that f(file) is true</span></div>
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> FileList filterInDir(std::string <span class="keyword">const</span> &dir,</div>
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  std::function<<span class="keywordtype">bool</span>(FilePath <span class="keyword">const</span> &)> f,</div>
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="keywordtype">bool</span> recursive = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  </div>
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="comment">// returns true if given file name/path ends in extension</span></div>
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="keywordtype">bool</span> checkExtension(std::string <span class="keyword">const</span> &filename, std::string <span class="keyword">const</span> &extension);</div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="keywordtype">bool</span> checkExtension(FilePath <span class="keyword">const</span> &filepath, std::string <span class="keyword">const</span> &extension);</div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  </div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> } <span class="comment">// namespace al</span></div>
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  </div>
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassal_1_1_dir_html"><div class="ttname"><a href="classal_1_1_dir.html">al::Dir</a></div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00397">al_File.hpp:397</a></div></div>
<div class="ttc" id="aclassal_1_1_dir_html_a062745c0bf6e424d0a5e1db64af44c40"><div class="ttname"><a href="classal_1_1_dir.html#a062745c0bf6e424d0a5e1db64af44c40">al::Dir::make</a></div><div class="ttdeci">static bool make(const std::string &path)</div><div class="ttdoc">Constructor. This does not attempt to open the directory.</div></div>
<div class="ttc" id="aclassal_1_1_dir_html_a794759dccd21654f6dc848a891795984"><div class="ttname"><a href="classal_1_1_dir.html#a794759dccd21654f6dc848a891795984">al::Dir::remove</a></div><div class="ttdeci">static bool remove(const std::string &path)</div><div class="ttdoc">Remove a directory.</div></div>
<div class="ttc" id="aclassal_1_1_dir_html_ae611dc5886d1b743720db8efa3b0c9fb"><div class="ttname"><a href="classal_1_1_dir.html#ae611dc5886d1b743720db8efa3b0c9fb">al::Dir::removeRecursively</a></div><div class="ttdeci">static bool removeRecursively(const std::string &path)</div><div class="ttdoc">Remove a directory recursively.</div></div>
<div class="ttc" id="aclassal_1_1_file_html"><div class="ttname"><a href="classal_1_1_file.html">al::File</a></div><div class="ttdoc">File.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00166">al_File.hpp:166</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a049f22b5cf7098ddd7d71be7a499e226"><div class="ttname"><a href="classal_1_1_file.html#a049f22b5cf7098ddd7d71be7a499e226">al::File::searchBack</a></div><div class="ttdeci">static bool searchBack(std::string &path, int maxDepth=6)</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a0e7bf5479e218f3efb1e6713faf610c2"><div class="ttname"><a href="classal_1_1_file.html#a0e7bf5479e218f3efb1e6713faf610c2">al::File::remove</a></div><div class="ttdeci">static bool remove(const std::string &path)</div><div class="ttdoc">Delete file from file system.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a1e33e0efc5f01ec5f5f2c157b9fa189f"><div class="ttname"><a href="classal_1_1_file.html#a1e33e0efc5f01ec5f5f2c157b9fa189f">al::File::exists</a></div><div class="ttdeci">static bool exists(const std::string &path)</div><div class="ttdoc">Returns whether a file or directory exists.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a28df276d5447dc6ca1b96a9d897453de"><div class="ttname"><a href="classal_1_1_file.html#a28df276d5447dc6ca1b96a9d897453de">al::File::absolutePath</a></div><div class="ttdeci">static std::string absolutePath(const std::string &path)</div><div class="ttdoc">Convert relative paths to absolute paths.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a42a8b075f057bb45d4e6b9b28b631bf0"><div class="ttname"><a href="classal_1_1_file.html#a42a8b075f057bb45d4e6b9b28b631bf0">al::File::exists</a></div><div class="ttdeci">static bool exists(const std::string &name, const std::string &path)</div><div class="ttdoc">Returns whether a file in a directory exists.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00328">al_File.hpp:328</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a440e9f1b29c167f48066ba67c26d7e8c"><div class="ttname"><a href="classal_1_1_file.html#a440e9f1b29c167f48066ba67c26d7e8c">al::File::write</a></div><div class="ttdeci">static int write(const std::string &path, const void *v, int size, int items=1)</div><div class="ttdoc">Quick and dirty write memory to file.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a46304f1a8f1bd43fc8e17b3781d52e1b"><div class="ttname"><a href="classal_1_1_file.html#a46304f1a8f1bd43fc8e17b3781d52e1b">al::File::read</a></div><div class="ttdeci">static std::string read(const std::string &path)</div><div class="ttdoc">Quick and dirty read of all bytes from file.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a4c6e5d9d5c68a3e29aecf6b02aca0fd6"><div class="ttname"><a href="classal_1_1_file.html#a4c6e5d9d5c68a3e29aecf6b02aca0fd6">al::File::path</a></div><div class="ttdeci">File & path(const std::string &v)</div><div class="ttdoc">Set path of file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00202">al_File.hpp:202</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a522742d74ed2a290eeec4776dbb9c74e"><div class="ttname"><a href="classal_1_1_file.html#a522742d74ed2a290eeec4776dbb9c74e">al::File::conformPathToOS</a></div><div class="ttdeci">static std::string conformPathToOS(const std::string &path)</div><div class="ttdoc">Conforms path.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a57055e627caa127b8be1ddeae7d968d3"><div class="ttname"><a href="classal_1_1_file.html#a57055e627caa127b8be1ddeae7d968d3">al::File::path</a></div><div class="ttdeci">const std::string & path() const</div><div class="ttdoc">Returns path string.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00234">al_File.hpp:234</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a60ee649d17f3f3c9a3f1a15b2f84c09a"><div class="ttname"><a href="classal_1_1_file.html#a60ee649d17f3f3c9a3f1a15b2f84c09a">al::File::close</a></div><div class="ttdeci">void close()</div><div class="ttdoc">Close file.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a6397233f9ec5dae98090fd6741bad4e7"><div class="ttname"><a href="classal_1_1_file.html#a6397233f9ec5dae98090fd6741bad4e7">al::File::conformDirectory</a></div><div class="ttdeci">static std::string conformDirectory(const std::string &dir)</div><div class="ttdoc">Returns string ensured to having an ending delimiter.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a67e3c357375b760c30006a08c5095a49"><div class="ttname"><a href="classal_1_1_file.html#a67e3c357375b760c30006a08c5095a49">al::File::mode</a></div><div class="ttdeci">const std::string & mode() const</div><div class="ttdoc">Returns file i/o mode string.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00231">al_File.hpp:231</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a78985da2e95be25b034c58dd38512593"><div class="ttname"><a href="classal_1_1_file.html#a78985da2e95be25b034c58dd38512593">al::File::baseName</a></div><div class="ttdeci">static std::string baseName(const std::string &path, const std::string &suffix="")</div><div class="ttdoc">Returns the base name of path.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a829a06f7efdcd7787f32d5e1e97aa563"><div class="ttname"><a href="classal_1_1_file.html#a829a06f7efdcd7787f32d5e1e97aa563">al::File::File</a></div><div class="ttdeci">File(std::string path=".", std::string mode="r", bool open_=false)</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a83933a2b25f93f5246c817778efdc9f4"><div class="ttname"><a href="classal_1_1_file.html#a83933a2b25f93f5246c817778efdc9f4">al::File::directory</a></div><div class="ttdeci">static std::string directory(const std::string &path)</div><div class="ttdoc">Returns the directory part of path.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a86ede98b9fecc66d2c21d521d9f7298c"><div class="ttname"><a href="classal_1_1_file.html#a86ede98b9fecc66d2c21d521d9f7298c">al::File::write</a></div><div class="ttdeci">int write(const std::string &v)</div><div class="ttdoc">Write string to file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00208">al_File.hpp:208</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a88df538f4f000155e6af8dd729f47374"><div class="ttname"><a href="classal_1_1_file.html#a88df538f4f000155e6af8dd729f47374">al::File::write</a></div><div class="ttdeci">static int write(const std::string &path, const std::string &data)</div><div class="ttdoc">Quick and dirty write character string to file.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a901f08baca29bb7849140a57b2a0aaf7"><div class="ttname"><a href="classal_1_1_file.html#a901f08baca29bb7849140a57b2a0aaf7">al::File::write</a></div><div class="ttdeci">int write(const void *v, int itemSizeInBytes, int items=1)</div><div class="ttdoc">Write memory elements to file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00213">al_File.hpp:213</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_a991408707b473e595764ea7fd91ff931"><div class="ttname"><a href="classal_1_1_file.html#a991408707b473e595764ea7fd91ff931">al::File::currentPath</a></div><div class="ttdeci">static std::string currentPath()</div></div>
<div class="ttc" id="aclassal_1_1_file_html_a9de7861a4851fe35974cae41266f5d96"><div class="ttname"><a href="classal_1_1_file.html#a9de7861a4851fe35974cae41266f5d96">al::File::readAll</a></div><div class="ttdeci">const char * readAll()</div><div class="ttdoc">Returns character string of file contents (read mode only)</div></div>
<div class="ttc" id="aclassal_1_1_file_html_aa531229c6f38a5464419ab804251572e"><div class="ttname"><a href="classal_1_1_file.html#aa531229c6f38a5464419ab804251572e">al::File::read</a></div><div class="ttdeci">int read(void *v, int size, int items=1)</div><div class="ttdoc">Read memory elements from file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00220">al_File.hpp:220</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_aa86afc7898e5b1ff403a6a317019fbf1"><div class="ttname"><a href="classal_1_1_file.html#aa86afc7898e5b1ff403a6a317019fbf1">al::File::open</a></div><div class="ttdeci">bool open(const std::string &path, const std::string &mode="r")</div><div class="ttdoc">Open file.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_aaf1c87489c832dc8501273b5b59ebd99"><div class="ttname"><a href="classal_1_1_file.html#aaf1c87489c832dc8501273b5b59ebd99">al::File::isDirectory</a></div><div class="ttdeci">static bool isDirectory(const std::string &path)</div><div class="ttdoc">Returns true if path is a directory.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_ab01277fcafec5433b10b840654349553"><div class="ttname"><a href="classal_1_1_file.html#ab01277fcafec5433b10b840654349553">al::File::copy</a></div><div class="ttdeci">static bool copy(const std::string &srcPath, const std::string &dstPath, unsigned int bufferSize=1e6)</div></div>
<div class="ttc" id="aclassal_1_1_file_html_ab1c963ce96e4fe969c990296954b744d"><div class="ttname"><a href="classal_1_1_file.html#ab1c963ce96e4fe969c990296954b744d">al::File::mode</a></div><div class="ttdeci">File & mode(const std::string &v)</div><div class="ttdoc">Set i/o mode.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00196">al_File.hpp:196</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_ab51851f152ce388ebcce35e56e620bbc"><div class="ttname"><a href="classal_1_1_file.html#ab51851f152ce388ebcce35e56e620bbc">al::File::extension</a></div><div class="ttdeci">static std::string extension(const std::string &path)</div><div class="ttdoc">Returns extension of file name.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_ac3779d7b0d46702cab57f0c2ce09063c"><div class="ttname"><a href="classal_1_1_file.html#ac3779d7b0d46702cab57f0c2ce09063c">al::File::filePointer</a></div><div class="ttdeci">FILE * filePointer()</div><div class="ttdoc">Return size file (or 0 on failure)</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00257">al_File.hpp:257</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_ad7eff527394ddd2ed199a04262bcda64"><div class="ttname"><a href="classal_1_1_file.html#ad7eff527394ddd2ed199a04262bcda64">al::File::searchBack</a></div><div class="ttdeci">static bool searchBack(std::string &rootPath, const std::string &matchPath, int maxDepth=6)</div><div class="ttdoc">Search for file or directory back from current directory.</div></div>
<div class="ttc" id="aclassal_1_1_file_html_adcfb9e799a6ca441c1494d4233b20f2f"><div class="ttname"><a href="classal_1_1_file.html#adcfb9e799a6ca441c1494d4233b20f2f">al::File::opened</a></div><div class="ttdeci">bool opened() const</div><div class="ttdoc">Returns whether file is open.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00228">al_File.hpp:228</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_ae7e78db8796e6540724e65f2bbe08b7f"><div class="ttname"><a href="classal_1_1_file.html#ae7e78db8796e6540724e65f2bbe08b7f">al::File::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Returns size, in bytes, of file contents.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00237">al_File.hpp:237</a></div></div>
<div class="ttc" id="aclassal_1_1_file_html_af617af4837775efb4932ef3643485101"><div class="ttname"><a href="classal_1_1_file.html#af617af4837775efb4932ef3643485101">al::File::open</a></div><div class="ttdeci">bool open()</div><div class="ttdoc">Open file using member variables.</div></div>
<div class="ttc" id="aclassal_1_1_file_list_html"><div class="ttname"><a href="classal_1_1_file_list.html">al::FileList</a></div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00450">al_File.hpp:450</a></div></div>
<div class="ttc" id="aclassal_1_1_file_list_html_a45a3ac6cf28b94c23e5c2d801341219e"><div class="ttname"><a href="classal_1_1_file_list.html#a45a3ac6cf28b94c23e5c2d801341219e">al::FileList::operator()</a></div><div class="ttdeci">FilePath & operator()()</div><div class="ttdoc">return currently selected file in list</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00457">al_File.hpp:457</a></div></div>
<div class="ttc" id="aclassal_1_1_file_list_html_a60bb8e41dafe0574ea95d1e9211c9cdf"><div class="ttname"><a href="classal_1_1_file_list.html#a60bb8e41dafe0574ea95d1e9211c9cdf">al::FileList::select</a></div><div class="ttdeci">FilePath & select(int i)</div><div class="ttdoc">find a file in list</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00462">al_File.hpp:462</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html"><div class="ttname"><a href="classal_1_1_file_path.html">al::FilePath</a></div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00081">al_File.hpp:81</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a24570773e331fdfecc5e7ed007cd7ec2"><div class="ttname"><a href="classal_1_1_file_path.html#a24570773e331fdfecc5e7ed007cd7ec2">al::FilePath::FilePath</a></div><div class="ttdeci">FilePath(const std::string &fullpath)</div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a3b2625eb078cde6df5258ebc6217e4c3"><div class="ttname"><a href="classal_1_1_file_path.html#a3b2625eb078cde6df5258ebc6217e4c3">al::FilePath::file</a></div><div class="ttdeci">const std::string & file() const</div><div class="ttdoc">Get file name without directory.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00094">al_File.hpp:94</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a4d50be4fae30b6cef4d4f70f6b8a7d77"><div class="ttname"><a href="classal_1_1_file_path.html#a4d50be4fae30b6cef4d4f70f6b8a7d77">al::FilePath::path</a></div><div class="ttdeci">const std::string & path() const</div><div class="ttdoc">Get path (directory) of file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00097">al_File.hpp:97</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a594ef26de1789a6feb02d93442b2bf84"><div class="ttname"><a href="classal_1_1_file_path.html#a594ef26de1789a6feb02d93442b2bf84">al::FilePath::valid</a></div><div class="ttdeci">bool valid() const</div><div class="ttdoc">Returns whether file part is valid.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00103">al_File.hpp:103</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a7b79a1a137debe2711f60c75ffec58a0"><div class="ttname"><a href="classal_1_1_file_path.html#a7b79a1a137debe2711f60c75ffec58a0">al::FilePath::path</a></div><div class="ttdeci">FilePath & path(const std::string &v)</div><div class="ttdoc">Set path (directory) of file.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00112">al_File.hpp:112</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_a9edcb00e16a377ede0441e4cf0b286a3"><div class="ttname"><a href="classal_1_1_file_path.html#a9edcb00e16a377ede0441e4cf0b286a3">al::FilePath::file</a></div><div class="ttdeci">FilePath & file(const std::string &v)</div><div class="ttdoc">Set file name without directory.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00106">al_File.hpp:106</a></div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_ab61b4f163a41be2e9eb55e5e5998632c"><div class="ttname"><a href="classal_1_1_file_path.html#ab61b4f163a41be2e9eb55e5e5998632c">al::FilePath::FilePath</a></div><div class="ttdeci">FilePath(const std::string &file, const std::string &path)</div></div>
<div class="ttc" id="aclassal_1_1_file_path_html_aed2f46d1394da0dfb64710796fa575bb"><div class="ttname"><a href="classal_1_1_file_path.html#aed2f46d1394da0dfb64710796fa575bb">al::FilePath::filepath</a></div><div class="ttdeci">std::string filepath() const</div><div class="ttdoc">Get file with directory.</div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00100">al_File.hpp:100</a></div></div>
<div class="ttc" id="aclassal_1_1_push_directory_html"><div class="ttname"><a href="classal_1_1_push_directory.html">al::PushDirectory</a></div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00381">al_File.hpp:381</a></div></div>
<div class="ttc" id="aclassal_1_1_search_paths_html"><div class="ttname"><a href="classal_1_1_search_paths.html">al::SearchPaths</a></div><div class="ttdef"><b>Definition:</b> <a href="al___file_8hpp_source.html#l00502">al_File.hpp:502</a></div></div>
<div class="ttc" id="aclassal_1_1_search_paths_html_a12485103c5645d0a1cc6541c7f8f14b5"><div class="ttname"><a href="classal_1_1_search_paths.html#a12485103c5645d0a1cc6541c7f8f14b5">al::SearchPaths::find</a></div><div class="ttdeci">FilePath find(const std::string &filename)</div><div class="ttdoc">find a file in the searchpaths</div></div>
<div class="ttc" id="aclassal_1_1_search_paths_html_aa73c3836e3786942c739331d2d3a4055"><div class="ttname"><a href="classal_1_1_search_paths.html#aa73c3836e3786942c739331d2d3a4055">al::SearchPaths::addAppPaths</a></div><div class="ttdeci">void addAppPaths(int argc, char *const argv[], bool recursive=true)</div></div>
<div class="ttc" id="aclassal_1_1_search_paths_html_ab9e1e2c2e06fb0f36c431fb07a9f8bae"><div class="ttname"><a href="classal_1_1_search_paths.html#ab9e1e2c2e06fb0f36c431fb07a9f8bae">al::SearchPaths::addSearchPath</a></div><div class="ttdeci">void addSearchPath(const std::string &path, bool recursive=true)</div><div class="ttdoc">add a path to search in; recursive searching is optional</div></div>
<div class="ttc" id="agroup___math_html_ga316b5a2949ca945618aab0c4f53ac0c5"><div class="ttname"><a href="group___math.html#ga316b5a2949ca945618aab0c4f53ac0c5">al::sort</a></div><div class="ttdeci">void sort(T &value1, T &value2)</div><div class="ttdef"><b>Definition:</b> <a href="al___functions_8hpp_source.html#l00948">al_Functions.hpp:948</a></div></div>
<div class="ttc" id="anamespaceal_html"><div class="ttname"><a href="namespaceal.html">al</a></div><div class="ttdef"><b>Definition:</b> <a href="al___app_8hpp_source.html#l00023">al_App.hpp:23</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_8ceffd4ee35c3518d4e8bdc7e638efe8.html">Users</a></li><li class="navelem"><a class="el" href="dir_d934af30b392b1c85e577a193a4f44d7.html">Andres</a></li><li class="navelem"><a class="el" href="dir_e68da7aceac684d2d8b9f1b11e1c2d97.html">source</a></li><li class="navelem"><a class="el" href="dir_fcc7705357f5b24b756c781e261be61a.html">repos</a></li><li class="navelem"><a class="el" href="dir_c3c6d9593ff25ad9938aa507653e60f1.html">casm_viewer</a></li><li class="navelem"><a class="el" href="dir_62b775495639e85334a47dd0b350fd78.html">external</a></li><li class="navelem"><a class="el" href="dir_b57b95b4f0b0651157add3c4117135ea.html">tinc</a></li><li class="navelem"><a class="el" href="dir_a51c8fbca25ad649a2e41de73b4ed7a8.html">external</a></li><li class="navelem"><a class="el" href="dir_f6b0d4003da5aa0ecdbed61a62e8b0a3.html">allolib</a></li><li class="navelem"><a class="el" href="dir_1a17cbf7a13c3de19497337dcee9a11d.html">include</a></li><li class="navelem"><a class="el" href="dir_c24702039c85b0e1007cbbfcdd096437.html">al</a></li><li class="navelem"><a class="el" href="dir_5126b2b21a27efd254cc88c1290fecbf.html">io</a></li><li class="navelem"><b>al_File.hpp</b></li>
<li class="footer">Generated on Thu Apr 8 2021 13:24:22 for Allolib 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 </li>
</ul>
</div>
</body>
</html>