1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
3 | <title>mixpp: binfile.h Source File</title> |
---|
4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
8 | <script type="text/javascript"> |
---|
9 | <!-- |
---|
10 | function changeDisplayState (e){ |
---|
11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
12 | var button=this.firstChild; |
---|
13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
15 | sectionDiv.style.display='block'; |
---|
16 | button.src='open.gif'; |
---|
17 | }else{ |
---|
18 | sectionDiv.style.display='none'; |
---|
19 | button.src='closed.gif'; |
---|
20 | } |
---|
21 | } |
---|
22 | function initDynSections(){ |
---|
23 | var divs=document.getElementsByTagName('div'); |
---|
24 | var sectionCounter=1; |
---|
25 | for(var i=0;i<divs.length-1;i++){ |
---|
26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
27 | var header=divs[i]; |
---|
28 | var section=divs[i+1]; |
---|
29 | var button=header.firstChild; |
---|
30 | if (button!='IMG'){ |
---|
31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
32 | button=document.createElement('img'); |
---|
33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
34 | } |
---|
35 | header.style.cursor='pointer'; |
---|
36 | header.onclick=changeDisplayState; |
---|
37 | header.id='dynheader'+sectionCounter; |
---|
38 | button.src='closed.gif'; |
---|
39 | section.id='dynsection'+sectionCounter; |
---|
40 | section.style.display='none'; |
---|
41 | section.style.marginLeft='14px'; |
---|
42 | sectionCounter++; |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | window.onload = initDynSections; |
---|
47 | --> |
---|
48 | </script> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
55 | <li><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="files.html"><span>File List</span></a></li> |
---|
62 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
63 | </ul> |
---|
64 | </div> |
---|
65 | <h1>binfile.h</h1><a href="binfile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
---|
66 | <a name="l00029"></a>00029 <span class="preprocessor">#ifndef BINFILE_H</span> |
---|
67 | <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define BINFILE_H</span> |
---|
68 | <a name="l00031"></a>00031 <span class="preprocessor"></span> |
---|
69 | <a name="l00032"></a>00032 <span class="preprocessor">#include <<a class="code" href="itcompat_8h.html" title="IT++ compatibility types and functions.">itpp/base/itcompat.h</a>></span> |
---|
70 | <a name="l00033"></a>00033 <span class="preprocessor">#include <fstream></span> |
---|
71 | <a name="l00034"></a>00034 |
---|
72 | <a name="l00035"></a>00035 |
---|
73 | <a name="l00036"></a>00036 <span class="keyword">namespace </span>itpp |
---|
74 | <a name="l00037"></a>00037 { |
---|
75 | <a name="l00038"></a>00038 |
---|
76 | <a name="l00043"></a>00043 <span class="keywordtype">bool</span> <a class="code" href="group__itfile.html#gacffe4278fbbedb72ffee609ae10f773" title="Checks if a file named name already exists on the disk.">exist</a>(<span class="keyword">const</span> std::string& name); |
---|
77 | <a name="l00044"></a>00044 |
---|
78 | <a name="l00053"></a><a class="code" href="classitpp_1_1bfstream__base.html">00053</a> <span class="keyword">class </span><a class="code" href="classitpp_1_1bfstream__base.html" title="Base class for binary file classesThis class serves as a base class for the classes...">bfstream_base</a> |
---|
79 | <a name="l00054"></a>00054 { |
---|
80 | <a name="l00055"></a>00055 <span class="keyword">public</span>: |
---|
81 | <a name="l00068"></a><a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b">00068</a> <span class="keyword">enum</span> <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> { l_endian, b_endian }; |
---|
82 | <a name="l00069"></a>00069 |
---|
83 | <a name="l00077"></a>00077 <a class="code" href="classitpp_1_1bfstream__base.html#8679cc312df085314a028d8584ce9164" title="Class Constructor.">bfstream_base</a>(<a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
84 | <a name="l00078"></a>00078 |
---|
85 | <a name="l00082"></a><a class="code" href="classitpp_1_1bfstream__base.html#401a56688588d60dc975bd1799d31af1">00082</a> <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> <a class="code" href="classitpp_1_1bfstream__base.html#401a56688588d60dc975bd1799d31af1" title="Returns the endianity of the class.">get_endianity</a>()<span class="keyword"> const </span>{ |
---|
86 | <a name="l00083"></a>00083 <span class="keywordflow">if</span> (<a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05" title="Indicates if the endianity of the processed data needs to be changed.">switch_endianity</a>) { |
---|
87 | <a name="l00084"></a>00084 <span class="keywordflow">if</span> (<a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0" title="The native endianity for this computer architecture.">native_endianity</a> == l_endian) |
---|
88 | <a name="l00085"></a>00085 <span class="keywordflow">return</span> b_endian; |
---|
89 | <a name="l00086"></a>00086 <span class="keywordflow">else</span> |
---|
90 | <a name="l00087"></a>00087 <span class="keywordflow">return</span> l_endian; |
---|
91 | <a name="l00088"></a>00088 } |
---|
92 | <a name="l00089"></a>00089 <span class="keywordflow">else</span> |
---|
93 | <a name="l00090"></a>00090 <span class="keywordflow">return</span> <a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0" title="The native endianity for this computer architecture.">native_endianity</a>; |
---|
94 | <a name="l00091"></a>00091 } |
---|
95 | <a name="l00092"></a>00092 |
---|
96 | <a name="l00099"></a><a class="code" href="classitpp_1_1bfstream__base.html#16cb86d0d72bfea9eeece1eb359bb2dc">00099</a> <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> <a class="code" href="classitpp_1_1bfstream__base.html#16cb86d0d72bfea9eeece1eb359bb2dc" title="Returns the native endianity for this computer architecture.">get_native_endianity</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0" title="The native endianity for this computer architecture.">native_endianity</a>; } |
---|
97 | <a name="l00100"></a>00100 |
---|
98 | <a name="l00104"></a><a class="code" href="classitpp_1_1bfstream__base.html#1cbb249d9551f7f211127267f0659070">00104</a> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bfstream__base.html#1cbb249d9551f7f211127267f0659070" title="Set the endianity for this class.">set_endianity</a>(<a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e) { |
---|
99 | <a name="l00105"></a>00105 <span class="keywordflow">if</span> (<a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0" title="The native endianity for this computer architecture.">native_endianity</a> == e) |
---|
100 | <a name="l00106"></a>00106 <a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05" title="Indicates if the endianity of the processed data needs to be changed.">switch_endianity</a> = <span class="keyword">false</span>; |
---|
101 | <a name="l00107"></a>00107 <span class="keywordflow">else</span> |
---|
102 | <a name="l00108"></a>00108 <a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05" title="Indicates if the endianity of the processed data needs to be changed.">switch_endianity</a> = <span class="keyword">true</span>; |
---|
103 | <a name="l00109"></a>00109 } |
---|
104 | <a name="l00110"></a>00110 |
---|
105 | <a name="l00115"></a><a class="code" href="classitpp_1_1bfstream__base.html#3fb631f9306a3979b2de2cbba3e7a6e8">00115</a> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bfstream__base.html#3fb631f9306a3979b2de2cbba3e7a6e8" title="Set the endianity of this class to the native endianity for this computer architecture...">set_native_endianity</a>() { <a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05" title="Indicates if the endianity of the processed data needs to be changed.">switch_endianity</a> = <span class="keyword">false</span>; } |
---|
106 | <a name="l00116"></a>00116 |
---|
107 | <a name="l00117"></a>00117 <span class="keyword">protected</span>: |
---|
108 | <a name="l00119"></a><a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05">00119</a> <span class="keywordtype">bool</span> <a class="code" href="classitpp_1_1bfstream__base.html#cbaef6aee59846dba986f483e9cbfa05" title="Indicates if the endianity of the processed data needs to be changed.">switch_endianity</a>; |
---|
109 | <a name="l00121"></a><a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0">00121</a> <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> <a class="code" href="classitpp_1_1bfstream__base.html#d9a02be8ad908bc3782f9e7dc7f5f9a0" title="The native endianity for this computer architecture.">native_endianity</a>; |
---|
110 | <a name="l00122"></a>00122 }; |
---|
111 | <a name="l00123"></a>00123 |
---|
112 | <a name="l00128"></a><a class="code" href="classitpp_1_1bofstream.html">00128</a> <span class="keyword">class </span><a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a> : <span class="keyword">public</span> <a class="code" href="classitpp_1_1bfstream__base.html" title="Base class for binary file classesThis class serves as a base class for the classes...">bfstream_base</a>, <span class="keyword">public</span> std::ofstream |
---|
113 | <a name="l00129"></a>00129 { |
---|
114 | <a name="l00130"></a>00130 <span class="keyword">public</span>: |
---|
115 | <a name="l00139"></a>00139 <a class="code" href="classitpp_1_1bofstream.html#93d5ec609f7f1712fcc3a48c50ab69bd" title="Class Constructor.">bofstream</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
116 | <a name="l00140"></a>00140 |
---|
117 | <a name="l00142"></a>00142 <a class="code" href="classitpp_1_1bofstream.html#93d5ec609f7f1712fcc3a48c50ab69bd" title="Class Constructor.">bofstream</a>(); |
---|
118 | <a name="l00143"></a>00143 |
---|
119 | <a name="l00145"></a><a class="code" href="classitpp_1_1bofstream.html#b2d74880b004cab5ea0d63c053d8716a">00145</a> <a class="code" href="classitpp_1_1bofstream.html#b2d74880b004cab5ea0d63c053d8716a" title="Class Destructor.">~bofstream</a>() { } |
---|
120 | <a name="l00146"></a>00146 |
---|
121 | <a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bofstream.html#df83a14c8f979e9ae1ed4b8a0a0435ad" title="Open a file for writing and set the endianity.">open</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
122 | <a name="l00155"></a>00155 |
---|
123 | <a name="l00157"></a>00157 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">char</span> a); |
---|
124 | <a name="l00159"></a>00159 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> a); |
---|
125 | <a name="l00161"></a>00161 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(int16_t a); |
---|
126 | <a name="l00163"></a>00163 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(uint16_t a); |
---|
127 | <a name="l00165"></a>00165 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(int32_t a); |
---|
128 | <a name="l00167"></a>00167 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(uint32_t a); |
---|
129 | <a name="l00169"></a>00169 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(int64_t a); |
---|
130 | <a name="l00171"></a>00171 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(uint64_t a); |
---|
131 | <a name="l00173"></a>00173 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">float</span> a); |
---|
132 | <a name="l00175"></a>00175 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">double</span> a); |
---|
133 | <a name="l00177"></a>00177 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* a); |
---|
134 | <a name="l00179"></a>00179 <a class="code" href="classitpp_1_1bofstream.html" title="Binary Outfile Class.">bofstream</a>& <a class="code" href="classitpp_1_1bofstream.html#5169f07af475537c1d45ae581e54136c" title="Writes a signed char variable to the binary output file.">operator<<</a>(<span class="keyword">const</span> std::string& a); |
---|
135 | <a name="l00180"></a>00180 }; |
---|
136 | <a name="l00181"></a>00181 |
---|
137 | <a name="l00186"></a><a class="code" href="classitpp_1_1bifstream.html">00186</a> <span class="keyword">class </span><a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a> : <span class="keyword">public</span> <a class="code" href="classitpp_1_1bfstream__base.html" title="Base class for binary file classesThis class serves as a base class for the classes...">bfstream_base</a>, <span class="keyword">public</span> std::ifstream |
---|
138 | <a name="l00187"></a>00187 { |
---|
139 | <a name="l00188"></a>00188 <span class="keyword">public</span>: |
---|
140 | <a name="l00197"></a>00197 <a class="code" href="classitpp_1_1bifstream.html#0c09837036492ba45604a23af368a743" title="Class Constructor.">bifstream</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
141 | <a name="l00198"></a>00198 |
---|
142 | <a name="l00200"></a>00200 <a class="code" href="classitpp_1_1bifstream.html#0c09837036492ba45604a23af368a743" title="Class Constructor.">bifstream</a>(); |
---|
143 | <a name="l00201"></a>00201 |
---|
144 | <a name="l00203"></a><a class="code" href="classitpp_1_1bifstream.html#317e44a39b180301e49fa8e364b82d98">00203</a> <a class="code" href="classitpp_1_1bifstream.html#317e44a39b180301e49fa8e364b82d98" title="Class Destructor.">~bifstream</a>() { } |
---|
145 | <a name="l00204"></a>00204 |
---|
146 | <a name="l00212"></a>00212 <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bifstream.html#0a2c57753b100c06f74aa6d95f63c31b" title="Open a file for reading and set the endianity.">open</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
147 | <a name="l00213"></a>00213 |
---|
148 | <a name="l00215"></a>00215 <span class="keywordtype">int</span> <a class="code" href="classitpp_1_1bifstream.html#e476f1e088d028123f9d9b17387c10ec" title="Returns the length in bytes of the file.">length</a>(); |
---|
149 | <a name="l00216"></a>00216 |
---|
150 | <a name="l00218"></a>00218 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(<span class="keywordtype">char</span>& a); |
---|
151 | <a name="l00220"></a>00220 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>& a); |
---|
152 | <a name="l00222"></a>00222 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(int16_t& a); |
---|
153 | <a name="l00224"></a>00224 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(uint16_t& a); |
---|
154 | <a name="l00226"></a>00226 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(int32_t& a); |
---|
155 | <a name="l00228"></a>00228 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(uint32_t& a); |
---|
156 | <a name="l00230"></a>00230 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(int64_t& a); |
---|
157 | <a name="l00232"></a>00232 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(uint64_t& a); |
---|
158 | <a name="l00234"></a>00234 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(<span class="keywordtype">float</span>& a); |
---|
159 | <a name="l00236"></a>00236 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(<span class="keywordtype">double</span>& a); |
---|
160 | <a name="l00238"></a>00238 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(<span class="keywordtype">char</span>* a); |
---|
161 | <a name="l00240"></a>00240 <a class="code" href="classitpp_1_1bifstream.html" title="Binary Infile Class.">bifstream</a>& <a class="code" href="classitpp_1_1bifstream.html#f898e150dbc64285dc7a132c18f81e57" title="Reads a signed char variable from the binary output file.">operator>></a>(std::string& a); |
---|
162 | <a name="l00241"></a>00241 }; |
---|
163 | <a name="l00242"></a>00242 |
---|
164 | <a name="l00247"></a><a class="code" href="classitpp_1_1bfstream.html">00247</a> <span class="keyword">class </span><a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a> : <span class="keyword">public</span> <a class="code" href="classitpp_1_1bfstream__base.html" title="Base class for binary file classesThis class serves as a base class for the classes...">bfstream_base</a>, <span class="keyword">public</span> std::fstream |
---|
165 | <a name="l00248"></a>00248 { |
---|
166 | <a name="l00249"></a>00249 <span class="keyword">public</span>: |
---|
167 | <a name="l00258"></a>00258 <a class="code" href="classitpp_1_1bfstream.html#586ba43e3cfb000a94d7305654e1e691" title="Class Constructor.">bfstream</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
168 | <a name="l00259"></a>00259 |
---|
169 | <a name="l00261"></a>00261 <a class="code" href="classitpp_1_1bfstream.html#586ba43e3cfb000a94d7305654e1e691" title="Class Constructor.">bfstream</a>(); |
---|
170 | <a name="l00262"></a>00262 |
---|
171 | <a name="l00264"></a><a class="code" href="classitpp_1_1bfstream.html#a9e0ce4943bc5ad96d55bd1003e59568">00264</a> <a class="code" href="classitpp_1_1bfstream.html#a9e0ce4943bc5ad96d55bd1003e59568" title="Class Destructor.">~bfstream</a>() { } |
---|
172 | <a name="l00265"></a>00265 |
---|
173 | <a name="l00274"></a>00274 <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bfstream.html#b01e4cb01b12871b921745dbc3b562aa" title="Open a file for reading and writing and set the endianity.">open</a>(<span class="keyword">const</span> std::string& name, <span class="keywordtype">bool</span> trunc = <span class="keyword">false</span>, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
174 | <a name="l00275"></a>00275 |
---|
175 | <a name="l00283"></a>00283 <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1bfstream.html#03b441c734c105ea33bedc7332d2f533" title="Open a file for reading only and set the endianity.">open_readonly</a>(<span class="keyword">const</span> std::string& name, <a class="code" href="classitpp_1_1bfstream__base.html#6f166d41c87aba471de03e9429f6546b" title="Definition of the endian data type.">endian</a> e = b_endian); |
---|
176 | <a name="l00284"></a>00284 |
---|
177 | <a name="l00286"></a>00286 <span class="keywordtype">int</span> <a class="code" href="classitpp_1_1bfstream.html#537de5b466518a31f550502855eddfff" title="Returns the length in bytes of the file.">length</a>(); |
---|
178 | <a name="l00287"></a>00287 |
---|
179 | <a name="l00289"></a>00289 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">char</span> a); |
---|
180 | <a name="l00291"></a>00291 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> a); |
---|
181 | <a name="l00293"></a>00293 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(int16_t a); |
---|
182 | <a name="l00295"></a>00295 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(uint16_t a); |
---|
183 | <a name="l00297"></a>00297 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(int32_t a); |
---|
184 | <a name="l00299"></a>00299 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(uint32_t a); |
---|
185 | <a name="l00301"></a>00301 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(int64_t a); |
---|
186 | <a name="l00303"></a>00303 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(uint64_t a); |
---|
187 | <a name="l00305"></a>00305 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">float</span> a); |
---|
188 | <a name="l00307"></a>00307 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keywordtype">double</span> a); |
---|
189 | <a name="l00309"></a>00309 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* a); |
---|
190 | <a name="l00311"></a>00311 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#36cf08ed61772e96279efb0c676bd597" title="Writes an signed char variable to the binary output file.">operator<<</a>(<span class="keyword">const</span> std::string& a); |
---|
191 | <a name="l00312"></a>00312 |
---|
192 | <a name="l00314"></a>00314 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(<span class="keywordtype">char</span>& a); |
---|
193 | <a name="l00316"></a>00316 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>& a); |
---|
194 | <a name="l00318"></a>00318 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(int16_t& a); |
---|
195 | <a name="l00320"></a>00320 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(uint16_t& a); |
---|
196 | <a name="l00322"></a>00322 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(int32_t& a); |
---|
197 | <a name="l00324"></a>00324 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(uint32_t& a); |
---|
198 | <a name="l00326"></a>00326 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(int64_t& a); |
---|
199 | <a name="l00328"></a>00328 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(uint64_t& a); |
---|
200 | <a name="l00330"></a>00330 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(<span class="keywordtype">float</span>& a); |
---|
201 | <a name="l00332"></a>00332 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(<span class="keywordtype">double</span>& a); |
---|
202 | <a name="l00334"></a>00334 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(<span class="keywordtype">char</span>* a); |
---|
203 | <a name="l00336"></a>00336 <a class="code" href="classitpp_1_1bfstream.html" title="Binary in/out-file Class.">bfstream</a>& <a class="code" href="classitpp_1_1bfstream.html#05546ff740dad0288366591457ca7171" title="Reads a char variable from the binary output file.">operator>></a>(std::string& a); |
---|
204 | <a name="l00337"></a>00337 }; |
---|
205 | <a name="l00338"></a>00338 |
---|
206 | <a name="l00339"></a>00339 } <span class="comment">//namespace itpp</span> |
---|
207 | <a name="l00340"></a>00340 |
---|
208 | <a name="l00341"></a>00341 <span class="preprocessor">#endif // #ifndef BINFILE_H</span> |
---|
209 | </pre></div></div> |
---|
210 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:10 2009 for mixpp by |
---|
211 | <a href="http://www.doxygen.org/index.html"> |
---|
212 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
213 | </body> |
---|
214 | </html> |
---|