[12] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
| 4 | <title>Class greg_month</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#id2409109" title="Header <boost/date_time/gregorian/greg_month.hpp>"> |
---|
| 9 | <link rel="prev" href="bad_month.html" title="Struct bad_month"> |
---|
| 10 | <link rel="next" href="bad_weekday.html" title="Struct bad_weekday"> |
---|
| 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="bad_month.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2409109"><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="bad_weekday.html"><img src="images/next.png" alt="Next"></a> |
---|
| 24 | </div> |
---|
| 25 | <div class="refentry" lang="en"> |
---|
| 26 | <a name="greg_month"></a><div class="titlepage"></div> |
---|
| 27 | <div class="refnamediv"> |
---|
| 28 | <h2><span class="refentrytitle">Class greg_month</span></h2> |
---|
| 29 | <p>boost::gregorian::greg_month — Wrapper class to represent months in gregorian based calendar. </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"> |
---|
| 33 | <span class="bold"><strong>class</strong></span> greg_month { |
---|
| 34 | <span class="bold"><strong>public</strong></span>: |
---|
| 35 | <span class="emphasis"><em>// types</em></span> |
---|
| 36 | <span class="bold"><strong>typedef</strong></span> date_time::months_of_year month_enum; |
---|
| 37 | <span class="bold"><strong>typedef</strong></span> std::map< std::string, <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span> > month_map_type; |
---|
| 38 | <span class="bold"><strong>typedef</strong></span> boost::shared_ptr< month_map_type > month_map_ptr_type; |
---|
| 39 | |
---|
| 40 | <span class="emphasis"><em>// <a href="greg_month.html#greg_monthconstruct-copy-destruct">construct/copy/destruct</a></em></span> |
---|
| 41 | <a href="greg_month.html#id2409371-bb">greg_month</a>(month_enum); |
---|
| 42 | <a href="greg_month.html#id2409390-bb">greg_month</a>(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span>); |
---|
| 43 | |
---|
| 44 | <span class="emphasis"><em>// <a href="greg_month.html#id2409179-bb">public member functions</a></em></span> |
---|
| 45 | <a href="greg_month.html#id2409183-bb"><span class="bold"><strong>operator</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></a>() <span class="bold"><strong>const</strong></span>; |
---|
| 46 | <span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a href="greg_month.html#id2409200-bb">as_number</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 47 | <span class="type">month_enum</span> <a href="greg_month.html#id2409216-bb">as_enum</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 48 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_month.html#id2409228-bb">as_short_string</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 49 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_month.html#id2409241-bb">as_long_string</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 50 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_month.html#id2409253-bb">as_short_wstring</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 51 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_month.html#id2409266-bb">as_long_wstring</a>() <span class="bold"><strong>const</strong></span>; |
---|
| 52 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_month.html#id2409279-bb">as_short_string</a>(<span class="bold"><strong>char</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
| 53 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_month.html#id2409302-bb">as_long_string</a>(<span class="bold"><strong>char</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
| 54 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_month.html#id2409324-bb">as_short_string</a>(<span class="bold"><strong>wchar_t</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
| 55 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_month.html#id2409347-bb">as_long_string</a>(<span class="bold"><strong>wchar_t</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
| 56 | |
---|
| 57 | <span class="emphasis"><em>// <a href="greg_month.html#id2409407-bb">public static functions</a></em></span> |
---|
| 58 | <span class="type">month_map_ptr_type</span> <a href="greg_month.html#id2409412-bb">get_month_map_ptr</a>() ; |
---|
| 59 | };</pre></div> |
---|
| 60 | <div class="refsect1" lang="en"> |
---|
| 61 | <a name="id2672017"></a><h2>Description</h2> |
---|
| 62 | <div class="refsect2" lang="en"> |
---|
| 63 | <a name="id2672021"></a><h3> |
---|
| 64 | <a name="greg_monthconstruct-copy-destruct"></a><code class="computeroutput">greg_month</code> construct/copy/destruct</h3> |
---|
| 65 | <div class="orderedlist"><ol type="1"> |
---|
| 66 | <li><pre class="literallayout"><a name="id2409371-bb"></a>greg_month(month_enum theMonth);</pre></li> |
---|
| 67 | <li><pre class="literallayout"><a name="id2409390-bb"></a>greg_month(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span> theMonth);</pre></li> |
---|
| 68 | </ol></div> |
---|
| 69 | </div> |
---|
| 70 | <div class="refsect2" lang="en"> |
---|
| 71 | <a name="id2672080"></a><h3> |
---|
| 72 | <a name="id2409179-bb"></a><code class="computeroutput">greg_month</code> public member functions</h3> |
---|
| 73 | <div class="orderedlist"><ol type="1"> |
---|
| 74 | <li><pre class="literallayout"><a name="id2409183-bb"></a><span class="bold"><strong>operator</strong></span> <span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span>() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 75 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a name="id2409200-bb"></a>as_number() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 76 | <li><pre class="literallayout"><span class="type">month_enum</span> <a name="id2409216-bb"></a>as_enum() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 77 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409228-bb"></a>as_short_string() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 78 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409241-bb"></a>as_long_string() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 79 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a name="id2409253-bb"></a>as_short_wstring() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 80 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a name="id2409266-bb"></a>as_long_wstring() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 81 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409279-bb"></a>as_short_string(<span class="bold"><strong>char</strong></span> ) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 82 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409302-bb"></a>as_long_string(<span class="bold"><strong>char</strong></span> ) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 83 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a name="id2409324-bb"></a>as_short_string(<span class="bold"><strong>wchar_t</strong></span> ) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 84 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a name="id2409347-bb"></a>as_long_string(<span class="bold"><strong>wchar_t</strong></span> ) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
| 85 | </ol></div> |
---|
| 86 | </div> |
---|
| 87 | <div class="refsect2" lang="en"> |
---|
| 88 | <a name="id2672478"></a><h3> |
---|
| 89 | <a name="id2409407-bb"></a><code class="computeroutput">greg_month</code> public static functions</h3> |
---|
| 90 | <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="type">month_map_ptr_type</span> <a name="id2409412-bb"></a>get_month_map_ptr() ;</pre></li></ol></div> |
---|
| 91 | </div> |
---|
| 92 | </div> |
---|
| 93 | </div> |
---|
| 94 | <table width="100%"><tr> |
---|
| 95 | <td align="left"></td> |
---|
| 96 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
| 97 | </tr></table> |
---|
| 98 | <hr> |
---|
| 99 | <div class="spirit-nav"> |
---|
| 100 | <a accesskey="p" href="bad_month.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2409109"><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="bad_weekday.html"><img src="images/next.png" alt="Next"></a> |
---|
| 101 | </div> |
---|
| 102 | </body> |
---|
| 103 | </html> |
---|