Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 54cac1c2268db633d66eeff1b4faa585 > files > 326

frepple-doc-0.8.1-3.fc15.noarch.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"/>
<title>C++ API frePPLe: frepple::utils::DateRange Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="../styles.css" rel="stylesheet"  type="text/css">
</head>
<body>
<div id="container">

<div id="menubar"> 
<div id="logo" align="center">
<br/><img src='../frepple.bmp' alt="frepple" /><br/>
<a href='http://www.frepple.com/'>
<strong>a Free<br/>Production Planning<br/>Library</strong>
</a>
</div>
<div id="menu">
<br/>
<h3><a href='../Main/HomePage.html'>Main</a></h3>
<h3><a href='../UI/Main.html'>User Manual</a></h3>
<h3><a href='../Tutorial/Main.html'>Tutorial</a></h3>
<h3><a href='../Frepple/Main.html'>Reference Manual</a></h3>
<h3><a href='../Main/FAQ.html'>FAQ</a></h3>
<h3><a href='index.html'>C++ API</a></h3>
<br/>
</div>  
</div>

<div id="content">
<br/>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00256.html">frepple</a>::<a class="el" href="a00257.html">utils</a>::<a class="el" href="a00050.html">DateRange</a>
  </div>
</div>
<div class="contents">
<h1>frepple::utils::DateRange Class Reference</h1><!-- doxytag: class="frepple::utils::DateRange" -->
<p>This class defines a date-range, i.e. a start-date and end-date pair.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00252_source.html">utils.h</a>&gt;</code></p>

<p><a href="a00573.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a4aedcbba80f09be5f5d826be643578fe">DateRange</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#ad3e080e9bbc95014ade42c58e856730b">DateRange</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a07b265a09c4f9921cd31fab5a29f106b">DateRange</a> (const <a class="el" href="a00049.html">Date</a> &amp;st, const <a class="el" href="a00049.html">Date</a> &amp;nd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#ab3020816550bbe0fa227b5121c6697f0">getDuration</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a165a8f748d8468e5ba8331c0e06bd3a2">getEnd</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a73e574de7fbf5df8ebc4c5190e7d49c3">getStart</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a0bffe72b2f8c5c70a23c293349c074fd">intersect</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;dr) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a715769d4811f3c36fb96a3f926cd49b8">operator string</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a9861b1888643b9d9fc22534d3796f127">operator!=</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#accf76cedd4e04993ea022c89ac48783c">operator+=</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a4cd3da07d775bfe57e78ecf8794c0378">operator-=</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a79b5269445634630b325799a3d84a8c1">operator=</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;dr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#ad3249f4edc2a1e5bc4b9901d902cd9d0">operator==</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a2e274b28b08fbe066b8b7c58542f774c">overlap</a> (const <a class="el" href="a00050.html">DateRange</a> &amp;dr) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a953ee79781eee836ae07bd389aca5515">setEnd</a> (const <a class="el" href="a00049.html">Date</a> &amp;d)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a301068faa83a2a88fdb46ffb26f56502">setStart</a> (const <a class="el" href="a00049.html">Date</a> &amp;d)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a380ccce1c1c9d6c030a9a87298306be5">setStartAndEnd</a> (const <a class="el" href="a00049.html">Date</a> &amp;st, const <a class="el" href="a00049.html">Date</a> &amp;nd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#abf7ce5c4a85cb217305224de40f384d6">within</a> (const <a class="el" href="a00049.html">Date</a> &amp;d) const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a26d0f9d8f3f3e65369c5fe244234be28">getSeparator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00050.html#a28ee194f2af3a72b49a823a660b606d6">setSeparator</a> (const string &amp;n)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class defines a date-range, i.e. a start-date and end-date pair. </p>
<p>The behavior is such that the start date is considered as included in it, but the end date is excluded from it. In other words, a daterange is a halfopen date interval: [start,end[<br/>
 The start and end dates are always such that the start date is less than or equal to the end date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01935">1935</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a07b265a09c4f9921cd31fab5a29f106b"></a><!-- doxytag: member="frepple::utils::DateRange::DateRange" ref="a07b265a09c4f9921cd31fab5a29f106b" args="(const Date &amp;st, const Date &amp;nd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::DateRange::DateRange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>nd</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor with specified start and end dates.<br/>
 If the start date is later than the end date parameter, the parameters will be swapped. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01941">1941</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad3e080e9bbc95014ade42c58e856730b"></a><!-- doxytag: member="frepple::utils::DateRange::DateRange" ref="ad3e080e9bbc95014ade42c58e856730b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::DateRange::DateRange </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor.<br/>
 This will create a daterange covering the complete horizon. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01947">1947</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4aedcbba80f09be5f5d826be643578fe"></a><!-- doxytag: member="frepple::utils::DateRange::DateRange" ref="a4aedcbba80f09be5f5d826be643578fe" args="(const DateRange &amp;n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::DateRange::DateRange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy constructor. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01950">1950</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab3020816550bbe0fa227b5121c6697f0"></a><!-- doxytag: member="frepple::utils::DateRange::getDuration" ref="ab3020816550bbe0fa227b5121c6697f0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::utils::DateRange::getDuration </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the duration of the interval. Note that this number will always be greater than or equal to 0, since the end date is always later than the start date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01978">1978</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a165a8f748d8468e5ba8331c0e06bd3a2"></a><!-- doxytag: member="frepple::utils::DateRange::getEnd" ref="a165a8f748d8468e5ba8331c0e06bd3a2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00049.html">Date</a>&amp; frepple::utils::DateRange::getEnd </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the end date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01962">1962</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a26d0f9d8f3f3e65369c5fe244234be28"></a><!-- doxytag: member="frepple::utils::DateRange::getSeparator" ref="a26d0f9d8f3f3e65369c5fe244234be28" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const string&amp; frepple::utils::DateRange::getSeparator </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retrieves the default seperator. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l02029">2029</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a73e574de7fbf5df8ebc4c5190e7d49c3"></a><!-- doxytag: member="frepple::utils::DateRange::getStart" ref="a73e574de7fbf5df8ebc4c5190e7d49c3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00049.html">Date</a>&amp; frepple::utils::DateRange::getStart </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the start date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01953">1953</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0bffe72b2f8c5c70a23c293349c074fd"></a><!-- doxytag: member="frepple::utils::DateRange::intersect" ref="a0bffe72b2f8c5c70a23c293349c074fd" args="(const DateRange &amp;dr) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::DateRange::intersect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return true if two date ranges are overlapping.<br/>
 The start point of the first interval is included in the comparison, whereas the end point isn't. As a result this method is not symmetrical, ie when a.intersect(b) returns true b.intersect(a) is not nessarily true. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l02003">2003</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a715769d4811f3c36fb96a3f926cd49b8"></a><!-- doxytag: member="frepple::utils::DateRange::operator string" ref="a715769d4811f3c36fb96a3f926cd49b8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::DateRange::operator string </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert the daterange to a string. </p>

<p>Definition at line <a class="el" href="a00198_source.html#l00108">108</a> of file <a class="el" href="a00198_source.html">date.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9861b1888643b9d9fc22534d3796f127"></a><!-- doxytag: member="frepple::utils::DateRange::operator!=" ref="a9861b1888643b9d9fc22534d3796f127" args="(const DateRange &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::DateRange::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Inequality of date ranges. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01985">1985</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="accf76cedd4e04993ea022c89ac48783c"></a><!-- doxytag: member="frepple::utils::DateRange::operator+=" ref="accf76cedd4e04993ea022c89ac48783c" args="(const TimePeriod &amp;l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Move the daterange later in time. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01989">1989</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4cd3da07d775bfe57e78ecf8794c0378"></a><!-- doxytag: member="frepple::utils::DateRange::operator&#45;=" ref="a4cd3da07d775bfe57e78ecf8794c0378" args="(const TimePeriod &amp;l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Move the daterange earlier in time. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01992">1992</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a79b5269445634630b325799a3d84a8c1"></a><!-- doxytag: member="frepple::utils::DateRange::operator=" ref="a79b5269445634630b325799a3d84a8c1" args="(const DateRange &amp;dr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assignment operator. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01995">1995</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad3249f4edc2a1e5bc4b9901d902cd9d0"></a><!-- doxytag: member="frepple::utils::DateRange::operator==" ref="ad3249f4edc2a1e5bc4b9901d902cd9d0" args="(const DateRange &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::DateRange::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Equality of date ranges. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01981">1981</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2e274b28b08fbe066b8b7c58542f774c"></a><!-- doxytag: member="frepple::utils::DateRange::overlap" ref="a2e274b28b08fbe066b8b7c58542f774c" args="(const DateRange &amp;dr) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::utils::DateRange::overlap </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00050.html">DateRange</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the number of seconds the two dateranges overlap. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l02007">2007</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a953ee79781eee836ae07bd389aca5515"></a><!-- doxytag: member="frepple::utils::DateRange::setEnd" ref="a953ee79781eee836ae07bd389aca5515" args="(const Date &amp;d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::setEnd </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>d</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the end date.<br/>
 If the new end date is earlier than the start date, the start date will be set equal to the new end date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01968">1968</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a28ee194f2af3a72b49a823a660b606d6"></a><!-- doxytag: member="frepple::utils::DateRange::setSeparator" ref="a28ee194f2af3a72b49a823a660b606d6" args="(const string &amp;n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void frepple::utils::DateRange::setSeparator </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the default seperator. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l02022">2022</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a301068faa83a2a88fdb46ffb26f56502"></a><!-- doxytag: member="frepple::utils::DateRange::setStart" ref="a301068faa83a2a88fdb46ffb26f56502" args="(const Date &amp;d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::setStart </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>d</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the start date.<br/>
 If the new start date is later than the end date, the end date will be set equal to the new start date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01959">1959</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a380ccce1c1c9d6c030a9a87298306be5"></a><!-- doxytag: member="frepple::utils::DateRange::setStartAndEnd" ref="a380ccce1c1c9d6c030a9a87298306be5" args="(const Date &amp;st, const Date &amp;nd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::DateRange::setStartAndEnd </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>st</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>nd</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the start and end dates simultaneously. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01971">1971</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="abf7ce5c4a85cb217305224de40f384d6"></a><!-- doxytag: member="frepple::utils::DateRange::within" ref="abf7ce5c4a85cb217305224de40f384d6" args="(const Date &amp;d) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::DateRange::within </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>d</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if the date passed as argument does fall within the daterange. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l02016">2016</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00252_source.html">utils.h</a></li>
<li><a class="el" href="a00198_source.html">date.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address>
</div>
</div>
</body>
</html>