Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 0a67b807a02637f2cae68649d519a89d > files > 2244

libcryptopp-devel-7.0.0-1.mga7.armv7hl.rpm

<!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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crypto++: files.h 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="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">Crypto++
   &#160;<span id="projectnumber">7.0</span>
   </div>
   <div id="projectbrief">Free&nbsp;C&#43;&#43;&nbsp;class&nbsp;library&nbsp;of&nbsp;cryptographic&nbsp;schemes</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<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&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">files.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="files_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// files.h - originally written and placed in the public domain by Wei Dai</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/// \file files.h</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/// \brief Classes providing file-based library services</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef CRYPTOPP_FILES_H</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define CRYPTOPP_FILES_H</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cryptlib_8h.html">cryptlib.h</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="filters_8h.html">filters.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="argnames_8h.html">argnames.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="smartptr_8h.html">smartptr.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;NAMESPACE_BEGIN(<a class="code" href="namespace_crypto_p_p.html">CryptoPP</a>)</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">/// \brief Implementation of Store interface</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span><span class="comment">/// \details file-based implementation of Store interface</span></div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_file_store.html">   22</a></span>&#160;<span class="comment"></span>class CRYPTOPP_DLL <a class="code" href="class_file_store.html">FileStore</a> : public <a class="code" href="class_store.html">Store</a>, private <a class="code" href="struct_filter_put_space_helper.html">FilterPutSpaceHelper</a>, public <a class="code" href="class_not_copyable.html">NotCopyable</a></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based error is encountered</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_file_store_1_1_err.html">   26</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_store_1_1_err.html">Err</a> : <span class="keyword">public</span> <a class="code" href="class_exception.html">Exception</a></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <a class="code" href="class_file_store_1_1_err.html">Err</a>(<span class="keyword">const</span> std::string &amp;s) : <a class="code" href="class_exception.html">Exception</a>(IO_ERROR, s) {}</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    };<span class="comment"></span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based open error is encountered</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_file_store_1_1_open_err.html">   32</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_store_1_1_open_err.html">OpenErr</a> : <span class="keyword">public</span> <a class="code" href="class_file_store_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_file_store_1_1_open_err.html">OpenErr</a>(<span class="keyword">const</span> std::string &amp;filename) : <a class="code" href="class_file_store_1_1_err.html">Err</a>(<span class="stringliteral">&quot;FileStore: error opening file for reading: &quot;</span> + filename) {}};<span class="comment"></span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based read error is encountered</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_file_store_1_1_read_err.html">   34</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_store_1_1_read_err.html">ReadErr</a> : <span class="keyword">public</span> <a class="code" href="class_file_store_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_file_store_1_1_read_err.html">ReadErr</a>() : <a class="code" href="class_file_store_1_1_err.html">Err</a>(<span class="stringliteral">&quot;FileStore: error reading file&quot;</span>) {}};</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">    /// \brief Construct a FileStore</span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_file_store.html#aadb823030f45a6a9690185f0279b6908">   37</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_store.html#aadb823030f45a6a9690185f0279b6908">FileStore</a>() : m_stream(NULLPTR), m_space(NULLPTR), m_len(0), m_waiting(0) {}</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">    /// \brief Construct a FileStore</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">    /// \param in an existing stream</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_file_store.html#a4a3ea09952e93c4db7fedf277c6d217e">   41</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_store.html#a4a3ea09952e93c4db7fedf277c6d217e">FileStore</a>(std::istream &amp;in) : m_stream(NULLPTR), m_space(NULLPTR), m_len(0), m_waiting(0)</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        {StoreInitialize(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#a86928da4acaa3a6bfe38b16bfda4bc68">Name::InputStreamPointer</a>(), &amp;in));}</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">    /// \brief Construct a FileStore</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">    /// \param filename the narrow name of the file to open</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_file_store.html#a27d2d16927f16301fb178b676794a1fc">   46</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_store.html#a27d2d16927f16301fb178b676794a1fc">FileStore</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename) : m_stream(NULLPTR), m_space(NULLPTR), m_len(0), m_waiting(0)</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        {StoreInitialize(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ad66764c80784dda0472b4862eed4cf94">Name::InputFileName</a>(), filename ? filename : <span class="stringliteral">&quot;&quot;</span>));}</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING) || _MSC_VER &gt;= 1400</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">    /// \brief Construct a FileStore</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment"></span><span class="comment">    /// \param filename the Unicode name of the file to open</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment"></span><span class="comment">    /// \details On non-Windows OS, this function assumes that setlocale() has been called.</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_file_store.html#ad457fe3ad70fa1b3b504a957862fc69f">   53</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_store.html#ad457fe3ad70fa1b3b504a957862fc69f">FileStore</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *filename)</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        {StoreInitialize(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ac461bd4c5e1a93da29a64bebd700d0c5">Name::InputFileNameWide</a>(), filename));}</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">    /// \brief Retrieves the internal stream</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">    /// \returns the internal stream pointer</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_file_store.html#a52271ff9a07861683eb41b9df0be7081">   59</a></span>&#160;<span class="comment"></span>    std::istream* <a class="code" href="class_file_store.html#a52271ff9a07861683eb41b9df0be7081">GetStream</a>() {<span class="keywordflow">return</span> m_stream;}</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">    /// \brief Retrieves the internal stream</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">    /// \returns the internal stream pointer</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_file_store.html#a2859727f11e4a2f20e91f3c52585691e">   63</a></span>&#160;<span class="comment"></span>    <span class="keyword">const</span> std::istream* <a class="code" href="class_file_store.html#a2859727f11e4a2f20e91f3c52585691e">GetStream</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_stream;}</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    lword MaxRetrievable() <span class="keyword">const</span>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">size_t</span> TransferTo2(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;target, lword &amp;transferBytes, <span class="keyword">const</span> std::string &amp;channel=<a class="code" href="cryptlib_8h.html#a9a69ab5a5e0f58279c43f4f51809c84a">DEFAULT_CHANNEL</a>, <span class="keywordtype">bool</span> blocking=<span class="keyword">true</span>);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">size_t</span> CopyRangeTo2(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> &amp;target, lword &amp;begin, lword end=LWORD_MAX, <span class="keyword">const</span> std::string &amp;channel=<a class="code" href="cryptlib_8h.html#a9a69ab5a5e0f58279c43f4f51809c84a">DEFAULT_CHANNEL</a>, <span class="keywordtype">bool</span> blocking=<span class="keyword">true</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    lword Skip(lword skipMax=ULONG_MAX);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">void</span> StoreInitialize(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="classmember__ptr.html">member_ptr&lt;std::ifstream&gt;</a> m_file;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    std::istream *m_stream;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    byte *m_space;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordtype">size_t</span> m_len;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">bool</span> m_waiting;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;};</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">/// \brief Implementation of Store interface</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">/// \details file-based implementation of Store interface</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_file_source.html">   82</a></span>&#160;<span class="comment"></span><span class="keyword">class </span>CRYPTOPP_DLL <a class="code" href="class_file_source.html">FileSource</a> : <span class="keyword">public</span> <a class="code" href="class_source_template.html">SourceTemplate</a>&lt;FileStore&gt;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="class_file_store_1_1_err.html">FileStore::Err</a> <a class="code" href="class_file_store_1_1_err.html">Err</a>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="class_file_store_1_1_open_err.html">FileStore::OpenErr</a> <a class="code" href="class_file_store_1_1_open_err.html">OpenErr</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keyword">typedef</span> <a class="code" href="class_file_store_1_1_read_err.html">FileStore::ReadErr</a> <a class="code" href="class_file_store_1_1_read_err.html">ReadErr</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment">    /// \brief Construct a FileSource</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_file_source.html#afaf658f26f1bc1d25bb1b8a6eb3a255c">   90</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_source.html#afaf658f26f1bc1d25bb1b8a6eb3a255c">FileSource</a>(<a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment = NULLPTR)</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        : <a class="code" href="class_source_template.html">SourceTemplate</a>&lt;<a class="code" href="class_file_store.html">FileStore</a>&gt;(attachment) {}</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">    /// \brief Construct a FileSource</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">    /// \param in an existing stream</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">    /// \param pumpAll flag indicating if source data should be pumped to its attached transformation</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">    /// \param attachment an optional attached transformation</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_file_source.html#a03a5d2f2116167667587c5ffae2e103c">   97</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_source.html#a03a5d2f2116167667587c5ffae2e103c">FileSource</a>(std::istream &amp;in, <span class="keywordtype">bool</span> pumpAll, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment = NULLPTR)</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        : <a class="code" href="class_source_template.html">SourceTemplate</a>&lt;<a class="code" href="class_file_store.html">FileStore</a>&gt;(attachment) {SourceInitialize(pumpAll, <a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#a86928da4acaa3a6bfe38b16bfda4bc68">Name::InputStreamPointer</a>(), &amp;in));}</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">    /// \brief Construct a FileSource</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">    /// \param filename the narrow name of the file to open</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">    /// \param pumpAll flag indicating if source data should be pumped to its attached transformation</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">    /// \param attachment an optional attached transformation</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">    /// \param binary flag indicating if the file is binary</span></div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_file_source.html#a1882e0cbe882e4379b8acf0c7707626f">  105</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_source.html#a1882e0cbe882e4379b8acf0c7707626f">FileSource</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> pumpAll, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment = NULLPTR, <span class="keywordtype">bool</span> binary=<span class="keyword">true</span>)</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        : <a class="code" href="class_source_template.html">SourceTemplate</a>&lt;<a class="code" href="class_file_store.html">FileStore</a>&gt;(attachment) {SourceInitialize(pumpAll, <a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ad66764c80784dda0472b4862eed4cf94">Name::InputFileName</a>(), filename)(<a class="code" href="namespace_name.html#a3fa390ba37a12cbc0475ecb3a3482fa7">Name::InputBinaryMode</a>(), binary));}</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING) || _MSC_VER &gt;= 1400</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">    /// \brief Construct a FileSource</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment"></span><span class="comment">    /// \param filename the Unicode name of the file to open</span></div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment"></span><span class="comment">    /// \param pumpAll flag indicating if source data should be pumped to its attached transformation</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment"></span><span class="comment">    /// \param attachment an optional attached transformation</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"></span><span class="comment">    /// \param binary flag indicating if the file is binary</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"></span><span class="comment">    /// \details On non-Windows OS, this function assumes that setlocale() has been called.</span></div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_file_source.html#a8e9bcbe6dc25699a845b5bbdef254a37">  115</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_source.html#a8e9bcbe6dc25699a845b5bbdef254a37">FileSource</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *filename, <span class="keywordtype">bool</span> pumpAll, <a class="code" href="class_buffered_transformation.html">BufferedTransformation</a> *attachment = NULLPTR, <span class="keywordtype">bool</span> binary=<span class="keyword">true</span>)</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        : <a class="code" href="class_source_template.html">SourceTemplate</a>&lt;<a class="code" href="class_file_store.html">FileStore</a>&gt;(attachment) {SourceInitialize(pumpAll, <a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ac461bd4c5e1a93da29a64bebd700d0c5">Name::InputFileNameWide</a>(), filename)(<a class="code" href="namespace_name.html#a3fa390ba37a12cbc0475ecb3a3482fa7">Name::InputBinaryMode</a>(), binary));}</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">    /// \brief Retrieves the internal stream</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">    /// \returns the internal stream pointer</span></div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_file_source.html#a2d864a4d277e47a88cb2c073b875d561">  121</a></span>&#160;<span class="comment"></span>    std::istream* <a class="code" href="class_file_source.html#a2d864a4d277e47a88cb2c073b875d561">GetStream</a>() {<span class="keywordflow">return</span> m_store.GetStream();}</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="comment">/// \brief Implementation of Store interface</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">/// \details file-based implementation of Sink interface</span></div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="class_file_sink.html">  126</a></span>&#160;<span class="comment"></span><span class="keyword">class </span>CRYPTOPP_DLL <a class="code" href="class_file_sink.html">FileSink</a> : <span class="keyword">public</span> <a class="code" href="class_sink.html">Sink</a>, <span class="keyword">public</span> <a class="code" href="class_not_copyable.html">NotCopyable</a></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;{</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">public</span>:<span class="comment"></span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based error is encountered</span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_file_sink_1_1_err.html">  130</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_sink_1_1_err.html">Err</a> : <span class="keyword">public</span> <a class="code" href="class_exception.html">Exception</a></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    {</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="class_file_sink_1_1_err.html">Err</a>(<span class="keyword">const</span> std::string &amp;s) : <a class="code" href="class_exception.html">Exception</a>(IO_ERROR, s) {}</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    };<span class="comment"></span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based open error is encountered</span></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_file_sink_1_1_open_err.html">  136</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_sink_1_1_open_err.html">OpenErr</a> : <span class="keyword">public</span> <a class="code" href="class_file_sink_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_file_sink_1_1_open_err.html">OpenErr</a>(<span class="keyword">const</span> std::string &amp;filename) : <a class="code" href="class_file_sink_1_1_err.html">Err</a>(<span class="stringliteral">&quot;FileSink: error opening file for writing: &quot;</span> + filename) {}};<span class="comment"></span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">    /// \brief Exception thrown when file-based write error is encountered</span></div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_file_sink_1_1_write_err.html">  138</a></span>&#160;<span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_file_sink_1_1_write_err.html">WriteErr</a> : <span class="keyword">public</span> <a class="code" href="class_file_sink_1_1_err.html">Err</a> {<span class="keyword">public</span>: <a class="code" href="class_file_sink_1_1_write_err.html">WriteErr</a>() : <a class="code" href="class_file_sink_1_1_err.html">Err</a>(<span class="stringliteral">&quot;FileSink: error writing file&quot;</span>) {}};</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment">    /// \brief Construct a FileSink</span></div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_file_sink.html#a61891e8f8b1fd2b9cb01a0c8ef9b2ef3">  141</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_sink.html#a61891e8f8b1fd2b9cb01a0c8ef9b2ef3">FileSink</a>() : m_stream(NULLPTR) {}</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="comment">    /// \brief Construct a FileSink</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment">    /// \param out an existing stream</span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_file_sink.html#ae7e571c08f2334948fc56249688cac24">  145</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_sink.html#ae7e571c08f2334948fc56249688cac24">FileSink</a>(std::ostream &amp;out)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        {<a class="code" href="class_buffered_transformation.html#a7bb05ac3b6302e2ab994586d526fa804">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#acb0d5b5aa2d9500f1e912aace88fe0e9">Name::OutputStreamPointer</a>(), &amp;out));}</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment">    /// \brief Construct a FileSink</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">    /// \param filename the narrow name of the file to open</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">    /// \param binary flag indicating if the file is binary</span></div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_file_sink.html#acf2703863fea64dbd82c2108245f8533">  151</a></span>&#160;<span class="comment"></span>    <a class="code" href="class_file_sink.html#acf2703863fea64dbd82c2108245f8533">FileSink</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> binary=<span class="keyword">true</span>)</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        {<a class="code" href="class_buffered_transformation.html#a7bb05ac3b6302e2ab994586d526fa804">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ab5ca7e49b99844e574c3b2eab44e1837">Name::OutputFileName</a>(), filename)(<a class="code" href="namespace_name.html#a7683fb8c189189e91a84ddbffd8ad9d4">Name::OutputBinaryMode</a>(), binary));}</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#if defined(CRYPTOPP_UNIX_AVAILABLE) || _MSC_VER &gt;= 1400</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment">    /// \brief Construct a FileSink</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment"></span><span class="comment">    /// \param filename the Unicode name of the file to open</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment"></span><span class="comment">    /// \details On non-Windows OS, this function assumes that setlocale() has been called.</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment"></span>    <a class="code" href="class_file_sink.html">FileSink</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *filename, <span class="keywordtype">bool</span> binary=<span class="keyword">true</span>)</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        {<a class="code" href="class_buffered_transformation.html#a7bb05ac3b6302e2ab994586d526fa804">IsolatedInitialize</a>(<a class="code" href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a>(<a class="code" href="namespace_name.html#ac7bf29845f776b9f68d80dfbb2f5892f">Name::OutputFileNameWide</a>(), filename)(<a class="code" href="namespace_name.html#a7683fb8c189189e91a84ddbffd8ad9d4">Name::OutputBinaryMode</a>(), binary));}</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="comment">    /// \brief Retrieves the internal stream</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment">    /// \returns the internal stream pointer</span></div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_file_sink.html#ae5c7c47d99b38ed04fb96c2e35e797e2">  164</a></span>&#160;<span class="comment"></span>    std::ostream* <a class="code" href="class_file_sink.html#ae5c7c47d99b38ed04fb96c2e35e797e2">GetStream</a>() {<span class="keywordflow">return</span> m_stream;}</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_buffered_transformation.html#a7bb05ac3b6302e2ab994586d526fa804">IsolatedInitialize</a>(<span class="keyword">const</span> <a class="code" href="class_name_value_pairs.html">NameValuePairs</a> &amp;parameters);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="class_buffered_transformation.html#ad396dcb42260f23125a35ec0e5d17d55">Put2</a>(<span class="keyword">const</span> byte *inString, <span class="keywordtype">size_t</span> length, <span class="keywordtype">int</span> messageEnd, <span class="keywordtype">bool</span> blocking);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_buffered_transformation.html#a68044dc8d57bc02edee1ce02b459a63d">IsolatedFlush</a>(<span class="keywordtype">bool</span> hardFlush, <span class="keywordtype">bool</span> blocking);</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <a class="code" href="classmember__ptr.html">member_ptr&lt;std::ofstream&gt;</a> m_file;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    std::ostream *m_stream;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;};</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;NAMESPACE_END</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="struct_filter_put_space_helper_html"><div class="ttname"><a href="struct_filter_put_space_helper.html">FilterPutSpaceHelper</a></div><div class="ttdoc">Create a working space in a BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="filters_8h_source.html#l00158">filters.h:158</a></div></div>
<div class="ttc" id="class_exception_html"><div class="ttname"><a href="class_exception.html">Exception</a></div><div class="ttdoc">Base class for all exceptions thrown by the library. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00155">cryptlib.h:155</a></div></div>
<div class="ttc" id="argnames_8h_html"><div class="ttname"><a href="argnames_8h.html">argnames.h</a></div><div class="ttdoc">Standard names for retrieving values by name when working with NameValuePairs. </div></div>
<div class="ttc" id="namespace_name_html_ac461bd4c5e1a93da29a64bebd700d0c5"><div class="ttname"><a href="namespace_name.html#ac461bd4c5e1a93da29a64bebd700d0c5">Name::InputFileNameWide</a></div><div class="ttdeci">const char * InputFileNameWide()</div><div class="ttdoc">const wchar_t * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00059">argnames.h:59</a></div></div>
<div class="ttc" id="class_file_store_html_a52271ff9a07861683eb41b9df0be7081"><div class="ttname"><a href="class_file_store.html#a52271ff9a07861683eb41b9df0be7081">FileStore::GetStream</a></div><div class="ttdeci">std::istream * GetStream()</div><div class="ttdoc">Retrieves the internal stream. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00059">files.h:59</a></div></div>
<div class="ttc" id="class_buffered_transformation_html_ad396dcb42260f23125a35ec0e5d17d55"><div class="ttname"><a href="class_buffered_transformation.html#ad396dcb42260f23125a35ec0e5d17d55">BufferedTransformation::Put2</a></div><div class="ttdeci">virtual size_t Put2(const byte *inString, size_t length, int messageEnd, bool blocking)=0</div><div class="ttdoc">Input multiple bytes for processing. </div></div>
<div class="ttc" id="class_buffered_transformation_html_a7bb05ac3b6302e2ab994586d526fa804"><div class="ttname"><a href="class_buffered_transformation.html#a7bb05ac3b6302e2ab994586d526fa804">BufferedTransformation::IsolatedInitialize</a></div><div class="ttdeci">virtual void IsolatedInitialize(const NameValuePairs &amp;parameters)</div><div class="ttdoc">Initialize or reinitialize this object, without signal propagation. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01702">cryptlib.h:1702</a></div></div>
<div class="ttc" id="class_file_source_html"><div class="ttname"><a href="class_file_source.html">FileSource</a></div><div class="ttdoc">Implementation of Store interface. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00082">files.h:82</a></div></div>
<div class="ttc" id="class_file_store_html_aadb823030f45a6a9690185f0279b6908"><div class="ttname"><a href="class_file_store.html#aadb823030f45a6a9690185f0279b6908">FileStore::FileStore</a></div><div class="ttdeci">FileStore()</div><div class="ttdoc">Construct a FileStore. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00037">files.h:37</a></div></div>
<div class="ttc" id="cryptlib_8h_html"><div class="ttname"><a href="cryptlib_8h.html">cryptlib.h</a></div><div class="ttdoc">Abstract base classes that provide a uniform interface to this library. </div></div>
<div class="ttc" id="smartptr_8h_html"><div class="ttname"><a href="smartptr_8h.html">smartptr.h</a></div><div class="ttdoc">Classes for automatic resource management. </div></div>
<div class="ttc" id="namespace_name_html_acb0d5b5aa2d9500f1e912aace88fe0e9"><div class="ttname"><a href="namespace_name.html#acb0d5b5aa2d9500f1e912aace88fe0e9">Name::OutputStreamPointer</a></div><div class="ttdeci">const char * OutputStreamPointer()</div><div class="ttdoc">std::ostream * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00064">argnames.h:64</a></div></div>
<div class="ttc" id="class_store_html"><div class="ttname"><a href="class_store.html">Store</a></div><div class="ttdoc">Acts as a Source for pre-existing, static data. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00306">simple.h:306</a></div></div>
<div class="ttc" id="class_file_source_html_a1882e0cbe882e4379b8acf0c7707626f"><div class="ttname"><a href="class_file_source.html#a1882e0cbe882e4379b8acf0c7707626f">FileSource::FileSource</a></div><div class="ttdeci">FileSource(const char *filename, bool pumpAll, BufferedTransformation *attachment=NULL, bool binary=true)</div><div class="ttdoc">Construct a FileSource. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00105">files.h:105</a></div></div>
<div class="ttc" id="class_file_store_html_ad457fe3ad70fa1b3b504a957862fc69f"><div class="ttname"><a href="class_file_store.html#ad457fe3ad70fa1b3b504a957862fc69f">FileStore::FileStore</a></div><div class="ttdeci">FileStore(const wchar_t *filename)</div><div class="ttdoc">Construct a FileStore. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00053">files.h:53</a></div></div>
<div class="ttc" id="namespace_name_html_ad66764c80784dda0472b4862eed4cf94"><div class="ttname"><a href="namespace_name.html#ad66764c80784dda0472b4862eed4cf94">Name::InputFileName</a></div><div class="ttdeci">const char * InputFileName()</div><div class="ttdoc">const char * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00058">argnames.h:58</a></div></div>
<div class="ttc" id="class_buffered_transformation_html"><div class="ttname"><a href="class_buffered_transformation.html">BufferedTransformation</a></div><div class="ttdoc">Interface for buffered transformations. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l01545">cryptlib.h:1545</a></div></div>
<div class="ttc" id="class_file_sink_html_ae7e571c08f2334948fc56249688cac24"><div class="ttname"><a href="class_file_sink.html#ae7e571c08f2334948fc56249688cac24">FileSink::FileSink</a></div><div class="ttdeci">FileSink(std::ostream &amp;out)</div><div class="ttdoc">Construct a FileSink. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00145">files.h:145</a></div></div>
<div class="ttc" id="classmember__ptr_html"><div class="ttname"><a href="classmember__ptr.html">member_ptr&lt; std::ifstream &gt;</a></div></div>
<div class="ttc" id="class_file_sink_html_acf2703863fea64dbd82c2108245f8533"><div class="ttname"><a href="class_file_sink.html#acf2703863fea64dbd82c2108245f8533">FileSink::FileSink</a></div><div class="ttdeci">FileSink(const char *filename, bool binary=true)</div><div class="ttdoc">Construct a FileSink. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00151">files.h:151</a></div></div>
<div class="ttc" id="class_file_source_html_a8e9bcbe6dc25699a845b5bbdef254a37"><div class="ttname"><a href="class_file_source.html#a8e9bcbe6dc25699a845b5bbdef254a37">FileSource::FileSource</a></div><div class="ttdeci">FileSource(const wchar_t *filename, bool pumpAll, BufferedTransformation *attachment=NULL, bool binary=true)</div><div class="ttdoc">Construct a FileSource. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00115">files.h:115</a></div></div>
<div class="ttc" id="class_file_source_html_afaf658f26f1bc1d25bb1b8a6eb3a255c"><div class="ttname"><a href="class_file_source.html#afaf658f26f1bc1d25bb1b8a6eb3a255c">FileSource::FileSource</a></div><div class="ttdeci">FileSource(BufferedTransformation *attachment=NULL)</div><div class="ttdoc">Construct a FileSource. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00090">files.h:90</a></div></div>
<div class="ttc" id="namespace_name_html_a86928da4acaa3a6bfe38b16bfda4bc68"><div class="ttname"><a href="namespace_name.html#a86928da4acaa3a6bfe38b16bfda4bc68">Name::InputStreamPointer</a></div><div class="ttdeci">const char * InputStreamPointer()</div><div class="ttdoc">std::istream * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00060">argnames.h:60</a></div></div>
<div class="ttc" id="namespace_name_html_a7683fb8c189189e91a84ddbffd8ad9d4"><div class="ttname"><a href="namespace_name.html#a7683fb8c189189e91a84ddbffd8ad9d4">Name::OutputBinaryMode</a></div><div class="ttdeci">const char * OutputBinaryMode()</div><div class="ttdoc">bool </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00065">argnames.h:65</a></div></div>
<div class="ttc" id="class_source_template_html"><div class="ttname"><a href="class_source_template.html">SourceTemplate</a></div><div class="ttdoc">Transform a Store into a Source. </div><div class="ttdef"><b>Definition:</b> <a href="filters_8h_source.html#l01350">filters.h:1350</a></div></div>
<div class="ttc" id="cryptlib_8h_html_a9a69ab5a5e0f58279c43f4f51809c84a"><div class="ttname"><a href="cryptlib_8h.html#a9a69ab5a5e0f58279c43f4f51809c84a">DEFAULT_CHANNEL</a></div><div class="ttdeci">const std::string DEFAULT_CHANNEL</div><div class="ttdoc">Default channel for BufferedTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00481">cryptlib.h:481</a></div></div>
<div class="ttc" id="algparam_8h_html_aa13eee74de98cf8aaa7e83f4fae7f28b"><div class="ttname"><a href="algparam_8h.html#aa13eee74de98cf8aaa7e83f4fae7f28b">MakeParameters</a></div><div class="ttdeci">AlgorithmParameters MakeParameters(const char *name, const T &amp;value, bool throwIfNotUsed=true)</div><div class="ttdoc">Create an object that implements NameValuePairs. </div><div class="ttdef"><b>Definition:</b> <a href="algparam_8h_source.html#l00502">algparam.h:502</a></div></div>
<div class="ttc" id="namespace_name_html_ab5ca7e49b99844e574c3b2eab44e1837"><div class="ttname"><a href="namespace_name.html#ab5ca7e49b99844e574c3b2eab44e1837">Name::OutputFileName</a></div><div class="ttdeci">const char * OutputFileName()</div><div class="ttdoc">const char * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00062">argnames.h:62</a></div></div>
<div class="ttc" id="class_file_store_html_a4a3ea09952e93c4db7fedf277c6d217e"><div class="ttname"><a href="class_file_store.html#a4a3ea09952e93c4db7fedf277c6d217e">FileStore::FileStore</a></div><div class="ttdeci">FileStore(std::istream &amp;in)</div><div class="ttdoc">Construct a FileStore. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00041">files.h:41</a></div></div>
<div class="ttc" id="class_file_sink_1_1_write_err_html"><div class="ttname"><a href="class_file_sink_1_1_write_err.html">FileSink::WriteErr</a></div><div class="ttdoc">Exception thrown when file-based write error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00138">files.h:138</a></div></div>
<div class="ttc" id="class_file_store_html_a27d2d16927f16301fb178b676794a1fc"><div class="ttname"><a href="class_file_store.html#a27d2d16927f16301fb178b676794a1fc">FileStore::FileStore</a></div><div class="ttdeci">FileStore(const char *filename)</div><div class="ttdoc">Construct a FileStore. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00046">files.h:46</a></div></div>
<div class="ttc" id="class_file_sink_1_1_err_html"><div class="ttname"><a href="class_file_sink_1_1_err.html">FileSink::Err</a></div><div class="ttdoc">Exception thrown when file-based error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00130">files.h:130</a></div></div>
<div class="ttc" id="class_buffered_transformation_html_a68044dc8d57bc02edee1ce02b459a63d"><div class="ttname"><a href="class_buffered_transformation.html#a68044dc8d57bc02edee1ce02b459a63d">BufferedTransformation::IsolatedFlush</a></div><div class="ttdeci">virtual bool IsolatedFlush(bool hardFlush, bool blocking)=0</div><div class="ttdoc">Flushes data buffered by this object, without signal propagation. </div></div>
<div class="ttc" id="filters_8h_html"><div class="ttname"><a href="filters_8h.html">filters.h</a></div><div class="ttdoc">Implementation of BufferedTransformation&amp;#39;s attachment interface. </div></div>
<div class="ttc" id="class_file_store_html"><div class="ttname"><a href="class_file_store.html">FileStore</a></div><div class="ttdoc">Implementation of Store interface. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00022">files.h:22</a></div></div>
<div class="ttc" id="class_file_source_html_a2d864a4d277e47a88cb2c073b875d561"><div class="ttname"><a href="class_file_source.html#a2d864a4d277e47a88cb2c073b875d561">FileSource::GetStream</a></div><div class="ttdeci">std::istream * GetStream()</div><div class="ttdoc">Retrieves the internal stream. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00121">files.h:121</a></div></div>
<div class="ttc" id="class_file_sink_1_1_open_err_html"><div class="ttname"><a href="class_file_sink_1_1_open_err.html">FileSink::OpenErr</a></div><div class="ttdoc">Exception thrown when file-based open error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00136">files.h:136</a></div></div>
<div class="ttc" id="class_file_sink_html_ae5c7c47d99b38ed04fb96c2e35e797e2"><div class="ttname"><a href="class_file_sink.html#ae5c7c47d99b38ed04fb96c2e35e797e2">FileSink::GetStream</a></div><div class="ttdeci">std::ostream * GetStream()</div><div class="ttdoc">Retrieves the internal stream. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00164">files.h:164</a></div></div>
<div class="ttc" id="class_file_sink_html_a61891e8f8b1fd2b9cb01a0c8ef9b2ef3"><div class="ttname"><a href="class_file_sink.html#a61891e8f8b1fd2b9cb01a0c8ef9b2ef3">FileSink::FileSink</a></div><div class="ttdeci">FileSink()</div><div class="ttdoc">Construct a FileSink. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00141">files.h:141</a></div></div>
<div class="ttc" id="class_sink_html"><div class="ttname"><a href="class_sink.html">Sink</a></div><div class="ttdoc">Implementation of BufferedTransformation&amp;#39;s attachment interface. </div><div class="ttdef"><b>Definition:</b> <a href="simple_8h_source.html#l00337">simple.h:337</a></div></div>
<div class="ttc" id="class_file_source_html_a03a5d2f2116167667587c5ffae2e103c"><div class="ttname"><a href="class_file_source.html#a03a5d2f2116167667587c5ffae2e103c">FileSource::FileSource</a></div><div class="ttdeci">FileSource(std::istream &amp;in, bool pumpAll, BufferedTransformation *attachment=NULL)</div><div class="ttdoc">Construct a FileSource. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00097">files.h:97</a></div></div>
<div class="ttc" id="namespace_crypto_p_p_html"><div class="ttname"><a href="namespace_crypto_p_p.html">CryptoPP</a></div><div class="ttdoc">Crypto++ library namespace. </div></div>
<div class="ttc" id="namespace_name_html_a3fa390ba37a12cbc0475ecb3a3482fa7"><div class="ttname"><a href="namespace_name.html#a3fa390ba37a12cbc0475ecb3a3482fa7">Name::InputBinaryMode</a></div><div class="ttdeci">const char * InputBinaryMode()</div><div class="ttdoc">bool </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00061">argnames.h:61</a></div></div>
<div class="ttc" id="class_file_sink_html"><div class="ttname"><a href="class_file_sink.html">FileSink</a></div><div class="ttdoc">Implementation of Store interface. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00126">files.h:126</a></div></div>
<div class="ttc" id="class_file_store_1_1_read_err_html"><div class="ttname"><a href="class_file_store_1_1_read_err.html">FileStore::ReadErr</a></div><div class="ttdoc">Exception thrown when file-based read error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00034">files.h:34</a></div></div>
<div class="ttc" id="class_not_copyable_html"><div class="ttname"><a href="class_not_copyable.html">NotCopyable</a></div><div class="ttdoc">Ensures an object is not copyable. </div><div class="ttdef"><b>Definition:</b> <a href="misc_8h_source.html#l00228">misc.h:228</a></div></div>
<div class="ttc" id="class_file_store_html_a2859727f11e4a2f20e91f3c52585691e"><div class="ttname"><a href="class_file_store.html#a2859727f11e4a2f20e91f3c52585691e">FileStore::GetStream</a></div><div class="ttdeci">const std::istream * GetStream() const</div><div class="ttdoc">Retrieves the internal stream. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00063">files.h:63</a></div></div>
<div class="ttc" id="class_file_store_1_1_err_html"><div class="ttname"><a href="class_file_store_1_1_err.html">FileStore::Err</a></div><div class="ttdoc">Exception thrown when file-based error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00026">files.h:26</a></div></div>
<div class="ttc" id="namespace_name_html_ac7bf29845f776b9f68d80dfbb2f5892f"><div class="ttname"><a href="namespace_name.html#ac7bf29845f776b9f68d80dfbb2f5892f">Name::OutputFileNameWide</a></div><div class="ttdeci">const char * OutputFileNameWide()</div><div class="ttdoc">const wchar_t * </div><div class="ttdef"><b>Definition:</b> <a href="argnames_8h_source.html#l00063">argnames.h:63</a></div></div>
<div class="ttc" id="class_name_value_pairs_html"><div class="ttname"><a href="class_name_value_pairs.html">NameValuePairs</a></div><div class="ttdoc">Interface for retrieving values given their names. </div><div class="ttdef"><b>Definition:</b> <a href="cryptlib_8h_source.html#l00290">cryptlib.h:290</a></div></div>
<div class="ttc" id="class_file_store_1_1_open_err_html"><div class="ttname"><a href="class_file_store_1_1_open_err.html">FileStore::OpenErr</a></div><div class="ttdoc">Exception thrown when file-based open error is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="files_8h_source.html#l00032">files.h:32</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Sep 16 2018 07:57:51 for Crypto++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>