This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AsciiHeaderIO_8cpp_source.html
113 lines (111 loc) · 25.5 KB
/
AsciiHeaderIO_8cpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ComPWA: Data/Ascii/AsciiHeaderIO.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="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>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="doxy-boot.js"></script>
</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">ComPWA
</div>
<div id="projectbrief">Common Partial-Wave-Analysis Framework</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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">
$(document).ready(function(){initNavTree('AsciiHeaderIO_8cpp_source.html','');});
</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">AsciiHeaderIO.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="AsciiHeaderIO_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// This file is part of the ComPWA framework, check</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright (c) 2013 The ComPWA Team.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// https://github.com/ComPWA/ComPWA/license.txt for details.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <fstream></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <regex></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <sstream></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="Exceptions_8hpp.html">Core/Exceptions.hpp</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="AsciiHeaderIO_8hpp.html">Data/Ascii/AsciiHeaderIO.hpp</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespaceComPWA.html">ComPWA</a> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span>Data {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>Ascii {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span>std_fix {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> std::string tolower(std::string s) {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  std::transform(s.begin(), s.end(), s.begin(),</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  [](<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c) { <span class="keywordflow">return</span> std::tolower(c); });</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">return</span> s;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> }</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> } <span class="comment">// namespace std_fix</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keywordtype">bool</span> isValueLine(<span class="keyword">const</span> std::string &line) {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::stringstream ss(line);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordtype">float</span> value;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)(ss >> value);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a54a47af3ff1f25f7c6ec46183d108129"> 36</a></span> std::string <a class="code" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a54a47af3ff1f25f7c6ec46183d108129">AsciiHeader::extractHeaderContent</a>(std::istream &InputStream) {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::regex HeaderBegin(<span class="stringliteral">"<header>"</span>, std::regex_constants::icase);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::regex HeaderEnd(<span class="stringliteral">"</header>"</span>, std::regex_constants::icase);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  std::string Line;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  std::stringstream HeaderContent;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::smatch RegexMatch;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">auto</span> pos = InputStream.tellg();</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">while</span> (std::getline(InputStream, Line)) {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (isValueLine(Line)) {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  InputStream.seekg(pos);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">return</span> <span class="stringliteral">""</span>; <span class="comment">// means there is no header</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="keywordflow">if</span> (std::regex_search(Line, RegexMatch, HeaderBegin)) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  HeaderContent << RegexMatch.suffix() << std::endl;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  Line = HeaderContent.str();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (std::regex_search(Line, RegexMatch, HeaderEnd)) {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  Line = RegexMatch.prefix();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> Line;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">if</span> (InputStream.eof()) {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  InputStream.clear();</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  InputStream.seekg(pos);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">throw</span> <a class="code" href="classComPWA_1_1CorruptFile.html">ComPWA::CorruptFile</a>(<span class="stringliteral">"No opening <header> tag"</span>);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">while</span> (std::getline(InputStream, Line)) {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (isValueLine(Line))</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">if</span> (std::regex_search(Line, RegexMatch, HeaderEnd)) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  HeaderContent << RegexMatch.prefix() << std::endl;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> HeaderContent.str();</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  HeaderContent << Line << std::endl;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  InputStream.clear();</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  InputStream.seekg(pos);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">throw</span> <a class="code" href="classComPWA_1_1CorruptFile.html">ComPWA::CorruptFile</a>(<span class="stringliteral">"No closing tag after <header>"</span>);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#ab4f5176905696305c7da79a07b28e3fc"> 85</a></span> <span class="keywordtype">void</span> <a class="code" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#ab4f5176905696305c7da79a07b28e3fc">AsciiHeader::importYAML</a>(<span class="keyword">const</span> std::string &HeaderContent) {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  std::stringstream StringStream(HeaderContent);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  std::string Line;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::regex RegexKeyValue(</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  R<span class="stringliteral">"(^\s*([^\s]+.*?)\s*:\s+([^\s]+.*?)\s*$)");</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="stringliteral"> </span><span class="keyword">static</span> <span class="keyword">const</span> std::regex RegexPID(R<span class="stringliteral">"(-?\d+)");</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="stringliteral"> </span><span class="keyword">static</span> <span class="keyword">const</span> std::regex RegexEfirst(<span class="stringliteral">"e.*[mpz]"</span>, std::regex_constants::icase);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">static</span> <span class="keyword">const</span> std::regex RegexPfirst(<span class="stringliteral">"[mp].*e"</span>, std::regex_constants::icase);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">while</span> (getline(StringStream, Line)) {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  std::smatch RegexMatch;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  std::regex_search(Line, RegexMatch, RegexKeyValue);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (RegexMatch.size() < 3)</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">const</span> std::string Key{std_fix::tolower(RegexMatch[1])};</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">const</span> std::string Value{RegexMatch[2]};</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> (Key == <span class="stringliteral">"pids"</span>) {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  std::sregex_iterator iter(Value.begin(), Value.end(), RegexPID), end;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  std::vector<int>().swap(PIDs); <span class="comment">// completely clear vector</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">for</span> (; iter != end; ++iter)</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  PIDs.push_back(std::stoi(iter->str()));</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Key == <span class="stringliteral">"unit"</span>) {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  Unit = Value;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Key == <span class="stringliteral">"order"</span>) {</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">if</span> (std::regex_match(Value, RegexPfirst)) {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  EnergyFirst = <span class="keyword">false</span>;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (std::regex_match(Value, RegexEfirst)) {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  EnergyFirst = <span class="keyword">true</span>;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</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> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a37d72d007e099ecdf24940cc7301acd0"> 118</a></span> <span class="keywordtype">void</span> <a class="code" href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a37d72d007e099ecdf24940cc7301acd0">AsciiHeader::dumpToYAML</a>(std::ostream &os)<span class="keyword"> const </span>{</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  os << <span class="stringliteral">"<header>"</span> << std::endl;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (PIDs.size()) {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  os << <span class="stringliteral">"\tPids: ["</span> << PIDs[0];</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 1; i < PIDs.size(); ++i)</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  os << <span class="stringliteral">", "</span> << PIDs[i];</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  os << <span class="stringliteral">"]"</span> << std::endl;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  os << <span class="stringliteral">"\tOrder: "</span>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span> (EnergyFirst)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  os << <span class="stringliteral">"E px py pz"</span> << std::endl;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  os << <span class="stringliteral">"px py pz E"</span> << std::endl;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  os << <span class="stringliteral">"\tUnit: "</span> << Unit << std::endl;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  os << <span class="stringliteral">"</header>"</span> << std::endl;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> } <span class="comment">// namespace Ascii</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> } <span class="comment">// namespace Data</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> } <span class="comment">// namespace ComPWA</span></div><div class="ttc" id="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader_html_ab4f5176905696305c7da79a07b28e3fc"><div class="ttname"><a href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#ab4f5176905696305c7da79a07b28e3fc">ComPWA::Data::Ascii::AsciiHeader::importYAML</a></div><div class="ttdeci">void importYAML(const std::string &HeaderContent)</div><div class="ttdoc">Set data members by reading a YAML-like string (including newlines). </div><div class="ttdef"><b>Definition:</b> <a href="AsciiHeaderIO_8cpp_source.html#l00085">AsciiHeaderIO.cpp:85</a></div></div>
<div class="ttc" id="classComPWA_1_1CorruptFile_html"><div class="ttname"><a href="classComPWA_1_1CorruptFile.html">ComPWA::CorruptFile</a></div><div class="ttdoc">Input data file is corrupt or incomplete. </div><div class="ttdef"><b>Definition:</b> <a href="Exceptions_8hpp_source.html#l00086">Exceptions.hpp:86</a></div></div>
<div class="ttc" id="AsciiHeaderIO_8hpp_html"><div class="ttname"><a href="AsciiHeaderIO_8hpp.html">AsciiHeaderIO.hpp</a></div></div>
<div class="ttc" id="namespaceComPWA_html"><div class="ttname"><a href="namespaceComPWA.html">ComPWA</a></div><div class="ttdef"><b>Definition:</b> <a href="Efficiency_8cpp_source.html#l00007">Efficiency.cpp:7</a></div></div>
<div class="ttc" id="Exceptions_8hpp_html"><div class="ttname"><a href="Exceptions_8hpp.html">Exceptions.hpp</a></div><div class="ttdoc">ComPWA exceptions. </div></div>
<div class="ttc" id="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader_html_a37d72d007e099ecdf24940cc7301acd0"><div class="ttname"><a href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a37d72d007e099ecdf24940cc7301acd0">ComPWA::Data::Ascii::AsciiHeader::dumpToYAML</a></div><div class="ttdeci">void dumpToYAML(std::ostream &os) const</div><div class="ttdoc">Serialise data members to YAML format, embedded in XML header tags. </div><div class="ttdef"><b>Definition:</b> <a href="AsciiHeaderIO_8cpp_source.html#l00118">AsciiHeaderIO.cpp:118</a></div></div>
<div class="ttc" id="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader_html_a54a47af3ff1f25f7c6ec46183d108129"><div class="ttname"><a href="classComPWA_1_1Data_1_1Ascii_1_1AsciiHeader.html#a54a47af3ff1f25f7c6ec46183d108129">ComPWA::Data::Ascii::AsciiHeader::extractHeaderContent</a></div><div class="ttdeci">static std::string extractHeaderContent(std::istream &InputStream)</div><div class="ttdoc">Extract the part that is between the XML/HTML tags <header>...</header> including newlines...</div><div class="ttdef"><b>Definition:</b> <a href="AsciiHeaderIO_8cpp_source.html#l00036">AsciiHeaderIO.cpp:36</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_e3d743d0ec9b4013b28b5d69101bc7fb.html">Data</a></li><li class="navelem"><a class="el" href="dir_aa484c1228064a85f9f0c4e09a7e4220.html">Ascii</a></li><li class="navelem"><a class="el" href="AsciiHeaderIO_8cpp.html">AsciiHeaderIO.cpp</a></li>
<li class="footer">Generated on Mon Jun 22 2020 13:03:33 for ComPWA by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>