You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
11 KiB

2 years ago
<!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" lang="en-US">
<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.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Webserv: includes/Parser.hpp 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">Webserv
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">Parser.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="Parser_8hpp.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">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &quot;<a class="code" href="webserv_8hpp.html">webserv.hpp</a>&quot;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"><a class="line" href="classJSONParser.html"> 4</a></span><span class="keyword">class </span><a class="code hl_class" href="classJSONParser.html">JSONParser</a> {</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"><a class="line" href="classJSONParser.html#a1089fd3496dc6865d0137daec6310905"> 5</a></span> std::fstream <a class="code hl_variable" href="classJSONParser.html#a1089fd3496dc6865d0137daec6310905">file</a>;</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"><a class="line" href="classJSONParser.html#a0ef04e64c276d2f24d02689ce1c101bc"> 6</a></span> <a class="code hl_class" href="classTokenizer.html">Tokenizer</a> <a class="code hl_variable" href="classJSONParser.html#a0ef04e64c276d2f24d02689ce1c101bc">tokenizer</a>;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> <a class="code hl_class" href="classJSONParser.html">JSONParser</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> filename);</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e">parse</a>();</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389">parseObject</a>();</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88">parseList</a>();</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#a1ca29ba38533304c6601eafd249d9ed4">parseString</a>();</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#a2d1a9d64e8bedc107cb5c9e7c4143fdf">parseNumber</a>();</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#afc1f8f30a01440eae32445b153d6e572">parseBoolean</a>();</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <a class="code hl_class" href="classJSONNode.html">JSONNode</a> *<a class="code hl_function" href="classJSONParser.html#a914758f808caf1443960df96d98810cc">parseNull</a>();</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>};</div>
<div class="ttc" id="aclassJSONNode_html"><div class="ttname"><a href="classJSONNode.html">JSONNode</a></div><div class="ttdef"><b>Definition:</b> <a href="Nodes_8hpp_source.html#l00004">Nodes.hpp:4</a></div></div>
<div class="ttc" id="aclassJSONParser_html"><div class="ttname"><a href="classJSONParser.html">JSONParser</a></div><div class="ttdef"><b>Definition:</b> <a href="Parser_8hpp_source.html#l00004">Parser.hpp:4</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a0ef04e64c276d2f24d02689ce1c101bc"><div class="ttname"><a href="classJSONParser.html#a0ef04e64c276d2f24d02689ce1c101bc">JSONParser::tokenizer</a></div><div class="ttdeci">Tokenizer tokenizer</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8hpp_source.html#l00006">Parser.hpp:6</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a1089fd3496dc6865d0137daec6310905"><div class="ttname"><a href="classJSONParser.html#a1089fd3496dc6865d0137daec6310905">JSONParser::file</a></div><div class="ttdeci">std::fstream file</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8hpp_source.html#l00005">Parser.hpp:5</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a1ca29ba38533304c6601eafd249d9ed4"><div class="ttname"><a href="classJSONParser.html#a1ca29ba38533304c6601eafd249d9ed4">JSONParser::parseString</a></div><div class="ttdeci">JSONNode * parseString()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00174">Parser.cpp:174</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a2d1a9d64e8bedc107cb5c9e7c4143fdf"><div class="ttname"><a href="classJSONParser.html#a2d1a9d64e8bedc107cb5c9e7c4143fdf">JSONParser::parseNumber</a></div><div class="ttdeci">JSONNode * parseNumber()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00181">Parser.cpp:181</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a7d5a3239976c55ca83d974c886146f88"><div class="ttname"><a href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88">JSONParser::parseList</a></div><div class="ttdeci">JSONNode * parseList()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00111">Parser.cpp:111</a></div></div>
<div class="ttc" id="aclassJSONParser_html_a914758f808caf1443960df96d98810cc"><div class="ttname"><a href="classJSONParser.html#a914758f808caf1443960df96d98810cc">JSONParser::parseNull</a></div><div class="ttdeci">JSONNode * parseNull()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00195">Parser.cpp:195</a></div></div>
<div class="ttc" id="aclassJSONParser_html_ac397e1ef199b5cd553c1dece740a045e"><div class="ttname"><a href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e">JSONParser::parse</a></div><div class="ttdeci">JSONNode * parse()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00005">Parser.cpp:5</a></div></div>
<div class="ttc" id="aclassJSONParser_html_acccb70f3b476f4bf15ac2ab4fc6b2389"><div class="ttname"><a href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389">JSONParser::parseObject</a></div><div class="ttdeci">JSONNode * parseObject()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00046">Parser.cpp:46</a></div></div>
<div class="ttc" id="aclassJSONParser_html_afc1f8f30a01440eae32445b153d6e572"><div class="ttname"><a href="classJSONParser.html#afc1f8f30a01440eae32445b153d6e572">JSONParser::parseBoolean</a></div><div class="ttdeci">JSONNode * parseBoolean()</div><div class="ttdef"><b>Definition:</b> <a href="Parser_8cpp_source.html#l00189">Parser.cpp:189</a></div></div>
<div class="ttc" id="aclassTokenizer_html"><div class="ttname"><a href="classTokenizer.html">Tokenizer</a></div><div class="ttdef"><b>Definition:</b> <a href="Token_8hpp_source.html#l00022">Token.hpp:22</a></div></div>
<div class="ttc" id="awebserv_8hpp_html"><div class="ttname"><a href="webserv_8hpp.html">webserv.hpp</a></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.7
</small></address>
</body>
</html>