Website Summary Files Commits Branches @commit @diff @stats
path: root / docs / html / Date_8h_source.html
diff options
context:
space:
mode:
Commit35831ff8dc30c9884a7c3340414f005a0d4ada10 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:21:09 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:21:09 +0300
Files07a06c30109e71defbfd305a7a9cca8d36a24e2c /docs/html/Date_8h_source.html
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.tar
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.tar.gz
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.zip
Parente2a51e497a2c1313722eb13f37aa682160021c2f (diff)
Completely reworked documentation
1 files changed, 132 insertions, 0 deletions
-rw-r--r--docs/html/Date_8h_source.html132
diff --git a/docs/html/Date_8h_source.html b/docs/html/Date_8h_source.html
new file mode 100644
index 0000000..2abaa4b
--- /dev/null
+++ b/docs/html/Date_8h_source.html
@@ -0,0 +1,132 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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=11"/>
+<meta name="generator" content="Doxygen 1.9.3"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>FMI Ticket System: src/Generic/Date/Date.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="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.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 id="projectrow">
+ <td id="projectalign">
+ <div id="projectname">FMI Ticket System
+ </div>
+ <div id="projectbrief">| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |</div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.9.3 -->
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
+var searchBox = new SearchBox("searchBox", "search",'Search','.html');
+/* @license-end */
+</script>
+<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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+/* @license-end */
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b37d33ceb7f5c107fb027d4db224bc89.html">Generic</a></li><li class="navelem"><a class="el" href="dir_7224707058fb4969194ce052045af3c4.html">Date</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle"><div class="title">Date.h</div></div>
+</div><!--header-->
+<div class="contents">
+<a href="Date_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef HEADER_DATE</span></div>
+<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define HEADER_DATE</span></div>
+<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
+<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;istream&gt;</span></div>
+<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;ostream&gt;</span></div>
+<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;../String/String.h&quot;</span></div>
+<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
+<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="classDate.html"> 14</a></span><span class="keyword">class </span><a class="code hl_class" href="classDate.html">Date</a> {</div>
+<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> day;</div>
+<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> month;</div>
+<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> year;</div>
+<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
+<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordtype">bool</span> isLeapYear();</div>
+<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> daysInMonth();</div>
+<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
+<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">public</span>:</div>
+<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_function" href="classDate.html#a4e59ed4ba66eec61c27460c5d09fa1bd">Date</a>();</div>
+<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_function" href="classDate.html#a4e59ed4ba66eec61c27460c5d09fa1bd">Date</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str);</div>
+<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_function" href="classDate.html#a4e59ed4ba66eec61c27460c5d09fa1bd">Date</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> day, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> month, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> year);</div>
+<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
+<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code hl_function" href="classDate.html#a2e4dc4249f8cccd40acc5950b42e1339">get_day</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classDate.html#acaf0c3ee1b2d36edf4f870ddd8acce08">set_day</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> day);</div>
+<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code hl_function" href="classDate.html#a79ebbf3cb46f892604dc79ffc82bcfcc">get_month</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classDate.html#ad0a591a557ddde0871389c3d716e6044">set_month</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> month);</div>
+<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code hl_function" href="classDate.html#a025aae2b290ba357e049d054085f91e3">get_year</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classDate.html#a6a0f3124e1850cd9f1514ebffcdd0cae">set_year</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> year);</div>
+<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
+<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_class" href="classString.html">String</a> <a class="code hl_function" href="classDate.html#a6e00ace9f8c923c96188bd76f1e064c2">createString</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
+<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classDate.html#a982c0c9098056aa33c5cbc9eba093852">read</a>(std::istream&amp; istr);</div>
+<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classDate.html#a9c728831f35f27abf3348132a13b7844">write</a>(std::ostream&amp; ostr);</div>
+<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classDate.html#a3cda588bf2f65b84639303a1aa1105be">compare</a>(<span class="keyword">const</span> <a class="code hl_class" href="classDate.html">Date</a>&amp; other) <span class="keyword">const</span>;</div>
+<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>};</div>
+<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
+<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>std::istream&amp; <a class="code hl_function" href="Date_8h.html#ae020cf1772268f1a43d172d3adfc9797">operator&gt;&gt;</a>(std::istream&amp; istr, <a class="code hl_class" href="classDate.html">Date</a>&amp; dt);</div>
+<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span>std::ostream&amp; <a class="code hl_function" href="Date_8h.html#ad12d4bbc4f7919efdec583d1478a6a76">operator&lt;&lt;</a>(std::ostream&amp; ostr, <span class="keyword">const</span> <a class="code hl_class" href="classDate.html">Date</a>&amp; dt);</div>
+<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
+<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="preprocessor">#endif</span></div>
+<div class="ttc" id="aDate_8h_html_ad12d4bbc4f7919efdec583d1478a6a76"><div class="ttname"><a href="Date_8h.html#ad12d4bbc4f7919efdec583d1478a6a76">operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;ostr, const Date &amp;dt)</div><div class="ttdoc">Writes date to stream with &lt;&lt; operator.</div><div class="ttdef"><b>Definition:</b> Date.cpp:171</div></div>
+<div class="ttc" id="aDate_8h_html_ae020cf1772268f1a43d172d3adfc9797"><div class="ttname"><a href="Date_8h.html#ae020cf1772268f1a43d172d3adfc9797">operator&gt;&gt;</a></div><div class="ttdeci">std::istream &amp; operator&gt;&gt;(std::istream &amp;istr, Date &amp;dt)</div><div class="ttdoc">Reads date from stream with &gt;&gt; operator.</div><div class="ttdef"><b>Definition:</b> Date.cpp:159</div></div>
+<div class="ttc" id="aclassDate_html"><div class="ttname"><a href="classDate.html">Date</a></div><div class="ttdoc">Stores a day, month and year.</div><div class="ttdef"><b>Definition:</b> Date.h:14</div></div>
+<div class="ttc" id="aclassDate_html_a025aae2b290ba357e049d054085f91e3"><div class="ttname"><a href="classDate.html#a025aae2b290ba357e049d054085f91e3">Date::get_year</a></div><div class="ttdeci">unsigned short get_year() const</div><div class="ttdoc">Returns the year.</div><div class="ttdef"><b>Definition:</b> Date.cpp:87</div></div>
+<div class="ttc" id="aclassDate_html_a2e4dc4249f8cccd40acc5950b42e1339"><div class="ttname"><a href="classDate.html#a2e4dc4249f8cccd40acc5950b42e1339">Date::get_day</a></div><div class="ttdeci">unsigned short get_day() const</div><div class="ttdoc">Returns the day.</div><div class="ttdef"><b>Definition:</b> Date.cpp:57</div></div>
+<div class="ttc" id="aclassDate_html_a3cda588bf2f65b84639303a1aa1105be"><div class="ttname"><a href="classDate.html#a3cda588bf2f65b84639303a1aa1105be">Date::compare</a></div><div class="ttdeci">int compare(const Date &amp;other) const</div><div class="ttdoc">Compares two dates.</div><div class="ttdef"><b>Definition:</b> Date.cpp:145</div></div>
+<div class="ttc" id="aclassDate_html_a4e59ed4ba66eec61c27460c5d09fa1bd"><div class="ttname"><a href="classDate.html#a4e59ed4ba66eec61c27460c5d09fa1bd">Date::Date</a></div><div class="ttdeci">Date()</div><div class="ttdoc">Sets date as 01 May 2022.</div><div class="ttdef"><b>Definition:</b> Date.cpp:21</div></div>
+<div class="ttc" id="aclassDate_html_a6a0f3124e1850cd9f1514ebffcdd0cae"><div class="ttname"><a href="classDate.html#a6a0f3124e1850cd9f1514ebffcdd0cae">Date::set_year</a></div><div class="ttdeci">bool set_year(unsigned short year)</div><div class="ttdoc">Sets the year.</div><div class="ttdef"><b>Definition:</b> Date.cpp:95</div></div>
+<div class="ttc" id="aclassDate_html_a6e00ace9f8c923c96188bd76f1e064c2"><div class="ttname"><a href="classDate.html#a6e00ace9f8c923c96188bd76f1e064c2">Date::createString</a></div><div class="ttdeci">String createString() const</div><div class="ttdoc">Returns the date as a String object.</div><div class="ttdef"><b>Definition:</b> Date.cpp:112</div></div>
+<div class="ttc" id="aclassDate_html_a79ebbf3cb46f892604dc79ffc82bcfcc"><div class="ttname"><a href="classDate.html#a79ebbf3cb46f892604dc79ffc82bcfcc">Date::get_month</a></div><div class="ttdeci">unsigned short get_month() const</div><div class="ttdoc">Returns the month.</div><div class="ttdef"><b>Definition:</b> Date.cpp:72</div></div>
+<div class="ttc" id="aclassDate_html_a982c0c9098056aa33c5cbc9eba093852"><div class="ttname"><a href="classDate.html#a982c0c9098056aa33c5cbc9eba093852">Date::read</a></div><div class="ttdeci">void read(std::istream &amp;istr)</div><div class="ttdoc">Reads date from stream.</div><div class="ttdef"><b>Definition:</b> Date.cpp:124</div></div>
+<div class="ttc" id="aclassDate_html_a9c728831f35f27abf3348132a13b7844"><div class="ttname"><a href="classDate.html#a9c728831f35f27abf3348132a13b7844">Date::write</a></div><div class="ttdeci">void write(std::ostream &amp;ostr)</div><div class="ttdoc">Writes date to stream.</div><div class="ttdef"><b>Definition:</b> Date.cpp:137</div></div>
+<div class="ttc" id="aclassDate_html_acaf0c3ee1b2d36edf4f870ddd8acce08"><div class="ttname"><a href="classDate.html#acaf0c3ee1b2d36edf4f870ddd8acce08">Date::set_day</a></div><div class="ttdeci">bool set_day(unsigned short day)</div><div class="ttdoc">Sets the day.</div><div class="ttdef"><b>Definition:</b> Date.cpp:65</div></div>
+<div class="ttc" id="aclassDate_html_ad0a591a557ddde0871389c3d716e6044"><div class="ttname"><a href="classDate.html#ad0a591a557ddde0871389c3d716e6044">Date::set_month</a></div><div class="ttdeci">bool set_month(unsigned short month)</div><div class="ttdoc">Sets the month.</div><div class="ttdef"><b>Definition:</b> Date.cpp:80</div></div>
+<div class="ttc" id="aclassString_html"><div class="ttname"><a href="classString.html">String</a></div><div class="ttdef"><b>Definition:</b> String.h:11</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
+</small></address>
+</body>
+</html>