1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class template special_values_parser</title> |
---|
5 | <link rel="stylesheet" href="boostbook.css" type="text/css"> |
---|
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.69.1"> |
---|
7 | <link rel="start" href="index.html" title="The Boost C++ Libraries"> |
---|
8 | <link rel="up" href="date_time/doxy.html#id2421174" title="Header <boost/date_time/special_values_parser.hpp>"> |
---|
9 | <link rel="prev" href="special_values_formatter.html" title="Class template special_values_formatter"> |
---|
10 | <link rel="next" href="convert_string_type.html" title="Function template convert_string_type"> |
---|
11 | </head> |
---|
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
---|
13 | <table cellpadding="2" width="100%"> |
---|
14 | <td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td> |
---|
15 | <td align="center"><a href="../../index.htm">Home</a></td> |
---|
16 | <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td> |
---|
17 | <td align="center"><a href="../../people/people.htm">People</a></td> |
---|
18 | <td align="center"><a href="../../more/faq.htm">FAQ</a></td> |
---|
19 | <td align="center"><a href="../../more/index.htm">More</a></td> |
---|
20 | </table> |
---|
21 | <hr> |
---|
22 | <div class="spirit-nav"> |
---|
23 | <a accesskey="p" href="special_values_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2421174"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="convert_string_type.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="special_values_parser"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class template special_values_parser</span></h2> |
---|
29 | <p>boost::date_time::special_values_parser — Class for special_value parsing. </p> |
---|
30 | </div> |
---|
31 | <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> |
---|
32 | <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> date_type, <span class="bold"><strong>typename</strong></span> charT> |
---|
33 | <span class="bold"><strong>class</strong></span> special_values_parser { |
---|
34 | <span class="bold"><strong>public</strong></span>: |
---|
35 | <span class="emphasis"><em>// types</em></span> |
---|
36 | <span class="bold"><strong>typedef</strong></span> std::basic_string< charT > string_type; |
---|
37 | <span class="bold"><strong>typedef</strong></span> std::istreambuf_iterator< charT > stream_itr_type; |
---|
38 | <span class="bold"><strong>typedef</strong></span> date_type::duration_type duration_type; |
---|
39 | <span class="bold"><strong>typedef</strong></span> <a href="string_parse_tree.html" title="Struct template string_parse_tree">string_parse_tree</a>< charT > parse_tree_type; |
---|
40 | <span class="bold"><strong>typedef</strong></span> parse_tree_type::parse_match_result_type match_results; |
---|
41 | <span class="bold"><strong>typedef</strong></span> std::vector< std::basic_string< charT > > collection_type; |
---|
42 | <span class="bold"><strong>typedef</strong></span> charT char_type; |
---|
43 | |
---|
44 | <span class="emphasis"><em>// <a href="special_values_parser.html#special_values_parserconstruct-copy-destruct">construct/copy/destruct</a></em></span> |
---|
45 | <a href="special_values_parser.html#id2393709-bb">special_values_parser</a>(); |
---|
46 | <a href="special_values_parser.html#id2393717-bb">special_values_parser</a>(<span class="bold"><strong>const</strong></span> string_type &, <span class="bold"><strong>const</strong></span> string_type &, |
---|
47 | <span class="bold"><strong>const</strong></span> string_type &, <span class="bold"><strong>const</strong></span> string_type &, |
---|
48 | <span class="bold"><strong>const</strong></span> string_type &); |
---|
49 | <a href="special_values_parser.html#id2452348-bb">special_values_parser</a>(<span class="bold"><strong>typename</strong></span> collection_type::iterator, |
---|
50 | <span class="bold"><strong>typename</strong></span> collection_type::iterator); |
---|
51 | <a href="special_values_parser.html#id2452371-bb">special_values_parser</a>(<span class="bold"><strong>const</strong></span> <a href="special_values_parser.html" title="Class template special_values_parser">special_values_parser</a>< date_type, charT > &); |
---|
52 | |
---|
53 | <span class="emphasis"><em>// <a href="special_values_parser.html#id2461674-bb">public member functions</a></em></span> |
---|
54 | <span class="type"><span class="bold"><strong>void</strong></span></span> <a href="special_values_parser.html#id2461679-bb">sv_strings</a>(<span class="bold"><strong>const</strong></span> string_type &, <span class="bold"><strong>const</strong></span> string_type &, |
---|
55 | <span class="bold"><strong>const</strong></span> string_type &, <span class="bold"><strong>const</strong></span> string_type &, |
---|
56 | <span class="bold"><strong>const</strong></span> string_type &) ; |
---|
57 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="special_values_parser.html#id2472129-bb">match</a>(stream_itr_type &, stream_itr_type &, match_results &) <span class="bold"><strong>const</strong></span>; |
---|
58 | |
---|
59 | <span class="bold"><strong>static</strong></span> const char_type nadt_string; |
---|
60 | <span class="bold"><strong>static</strong></span> const char_type neg_inf_string; |
---|
61 | <span class="bold"><strong>static</strong></span> const char_type pos_inf_string; |
---|
62 | <span class="bold"><strong>static</strong></span> const char_type min_date_time_string; |
---|
63 | <span class="bold"><strong>static</strong></span> const char_type max_date_time_string; |
---|
64 | };</pre></div> |
---|
65 | <div class="refsect1" lang="en"> |
---|
66 | <a name="id2649804"></a><h2>Description</h2> |
---|
67 | <p>TODO: add doc-comments for which elements can be changed Parses input stream for strings representing special_values. Special values parsed are:</p> |
---|
68 | <div class="itemizedlist"><ul type="disc"> |
---|
69 | <li><p>not_a_date_time</p></li> |
---|
70 | <li><p>neg_infin</p></li> |
---|
71 | <li><p>pod_infin</p></li> |
---|
72 | <li><p>min_date_time</p></li> |
---|
73 | <li><p>max_date_time </p></li> |
---|
74 | </ul></div> |
---|
75 | <div class="refsect2" lang="en"> |
---|
76 | <a name="id2649831"></a><h3> |
---|
77 | <a name="special_values_parserconstruct-copy-destruct"></a><code class="computeroutput">special_values_parser</code> construct/copy/destruct</h3> |
---|
78 | <div class="orderedlist"><ol type="1"> |
---|
79 | <li><pre class="literallayout"><a name="id2393709-bb"></a>special_values_parser();</pre></li> |
---|
80 | <li><pre class="literallayout"><a name="id2393717-bb"></a>special_values_parser(<span class="bold"><strong>const</strong></span> string_type & nadt_str, |
---|
81 | <span class="bold"><strong>const</strong></span> string_type & neg_inf_str, |
---|
82 | <span class="bold"><strong>const</strong></span> string_type & pos_inf_str, |
---|
83 | <span class="bold"><strong>const</strong></span> string_type & min_dt_str, |
---|
84 | <span class="bold"><strong>const</strong></span> string_type & max_dt_str);</pre></li> |
---|
85 | <li><pre class="literallayout"><a name="id2452348-bb"></a>special_values_parser(<span class="bold"><strong>typename</strong></span> collection_type::iterator beg, |
---|
86 | <span class="bold"><strong>typename</strong></span> collection_type::iterator end);</pre></li> |
---|
87 | <li><pre class="literallayout"><a name="id2452371-bb"></a>special_values_parser(<span class="bold"><strong>const</strong></span> <a href="special_values_parser.html" title="Class template special_values_parser">special_values_parser</a>< date_type, charT > & svp);</pre></li> |
---|
88 | </ol></div> |
---|
89 | </div> |
---|
90 | <div class="refsect2" lang="en"> |
---|
91 | <a name="id2649975"></a><h3> |
---|
92 | <a name="id2461674-bb"></a><code class="computeroutput">special_values_parser</code> public member functions</h3> |
---|
93 | <div class="orderedlist"><ol type="1"> |
---|
94 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>void</strong></span></span> <a name="id2461679-bb"></a>sv_strings(<span class="bold"><strong>const</strong></span> string_type & nadt_str, <span class="bold"><strong>const</strong></span> string_type & neg_inf_str, |
---|
95 | <span class="bold"><strong>const</strong></span> string_type & pos_inf_str, |
---|
96 | <span class="bold"><strong>const</strong></span> string_type & min_dt_str, |
---|
97 | <span class="bold"><strong>const</strong></span> string_type & max_dt_str) ;</pre></li> |
---|
98 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2472129-bb"></a>match(stream_itr_type & sitr, stream_itr_type & str_end, |
---|
99 | match_results & mr) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
100 | </ol></div> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </div> |
---|
104 | <table width="100%"><tr> |
---|
105 | <td align="left"></td> |
---|
106 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
107 | </tr></table> |
---|
108 | <hr> |
---|
109 | <div class="spirit-nav"> |
---|
110 | <a accesskey="p" href="special_values_formatter.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2421174"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="convert_string_type.html"><img src="images/next.png" alt="Next"></a> |
---|
111 | </div> |
---|
112 | </body> |
---|
113 | </html> |
---|