1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class greg_weekday</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#id2409485" title="Header <boost/date_time/gregorian/greg_weekday.hpp>"> |
---|
9 | <link rel="prev" href="bad_weekday.html" title="Struct bad_weekday"> |
---|
10 | <link rel="next" href="bad_year.html" title="Struct bad_year"> |
---|
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_weekday.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2409485"><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_year.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="greg_weekday"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class greg_weekday</span></h2> |
---|
29 | <p>boost::gregorian::greg_weekday — Represent a day within a week (range 0==Sun to 6==Sat). </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_weekday { |
---|
34 | <span class="bold"><strong>public</strong></span>: |
---|
35 | <span class="emphasis"><em>// types</em></span> |
---|
36 | <span class="bold"><strong>typedef</strong></span> boost::date_time::weekdays weekday_enum; |
---|
37 | |
---|
38 | <span class="emphasis"><em>// <a href="greg_weekday.html#greg_weekdayconstruct-copy-destruct">construct/copy/destruct</a></em></span> |
---|
39 | <a href="greg_weekday.html#id2409616-bb">greg_weekday</a>(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span>); |
---|
40 | |
---|
41 | <span class="emphasis"><em>// <a href="greg_weekday.html#id2409535-bb">public member functions</a></em></span> |
---|
42 | <span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a href="greg_weekday.html#id2409540-bb">as_number</a>() <span class="bold"><strong>const</strong></span>; |
---|
43 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_weekday.html#id2409552-bb">as_short_string</a>() <span class="bold"><strong>const</strong></span>; |
---|
44 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a href="greg_weekday.html#id2409565-bb">as_long_string</a>() <span class="bold"><strong>const</strong></span>; |
---|
45 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_weekday.html#id2409577-bb">as_short_wstring</a>() <span class="bold"><strong>const</strong></span>; |
---|
46 | <span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>wchar_t</strong></span> *</span> <a href="greg_weekday.html#id2409590-bb">as_long_wstring</a>() <span class="bold"><strong>const</strong></span>; |
---|
47 | <span class="type">weekday_enum</span> <a href="greg_weekday.html#id2409603-bb">as_enum</a>() <span class="bold"><strong>const</strong></span>; |
---|
48 | };</pre></div> |
---|
49 | <div class="refsect1" lang="en"> |
---|
50 | <a name="id2672968"></a><h2>Description</h2> |
---|
51 | <div class="refsect2" lang="en"> |
---|
52 | <a name="id2672971"></a><h3> |
---|
53 | <a name="greg_weekdayconstruct-copy-destruct"></a><code class="computeroutput">greg_weekday</code> construct/copy/destruct</h3> |
---|
54 | <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><a name="id2409616-bb"></a>greg_weekday(<span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span> day_of_week_num);</pre></li></ol></div> |
---|
55 | </div> |
---|
56 | <div class="refsect2" lang="en"> |
---|
57 | <a name="id2673016"></a><h3> |
---|
58 | <a name="id2409535-bb"></a><code class="computeroutput">greg_weekday</code> public member functions</h3> |
---|
59 | <div class="orderedlist"><ol type="1"> |
---|
60 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>unsigned</strong></span> <span class="bold"><strong>short</strong></span></span> <a name="id2409540-bb"></a>as_number() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
61 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409552-bb"></a>as_short_string() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
62 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <span class="bold"><strong>char</strong></span> *</span> <a name="id2409565-bb"></a>as_long_string() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
63 | <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="id2409577-bb"></a>as_short_wstring() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
64 | <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="id2409590-bb"></a>as_long_wstring() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
65 | <li><pre class="literallayout"><span class="type">weekday_enum</span> <a name="id2409603-bb"></a>as_enum() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
66 | </ol></div> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | <table width="100%"><tr> |
---|
71 | <td align="left"></td> |
---|
72 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
73 | </tr></table> |
---|
74 | <hr> |
---|
75 | <div class="spirit-nav"> |
---|
76 | <a accesskey="p" href="bad_weekday.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2409485"><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_year.html"><img src="images/next.png" alt="Next"></a> |
---|
77 | </div> |
---|
78 | </body> |
---|
79 | </html> |
---|