Webserv
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
JSONParser Class Reference

#include <Parser.hpp>

Collaboration diagram for JSONParser:
Collaboration graph
[legend]

Public Member Functions

 JSONParser (const string filename)
 
JSONNodeparse ()
 
JSONNodeparseObject ()
 
JSONNodeparseList ()
 
JSONNodeparseString ()
 
JSONNodeparseNumber ()
 
JSONNodeparseBoolean ()
 
JSONNodeparseNull ()
 

Private Attributes

std::fstream file
 
Tokenizer tokenizer
 

Detailed Description

Definition at line 4 of file Parser.hpp.

Constructor & Destructor Documentation

◆ JSONParser()

JSONParser::JSONParser ( const string  filename)

Definition at line 3 of file Parser.cpp.

Member Function Documentation

◆ parse()

JSONNode * JSONParser::parse ( )

Definition at line 5 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseBoolean()

JSONNode * JSONParser::parseBoolean ( )

Definition at line 189 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseList()

JSONNode * JSONParser::parseList ( )

Definition at line 111 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseNull()

JSONNode * JSONParser::parseNull ( )

Definition at line 195 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseNumber()

JSONNode * JSONParser::parseNumber ( )

Definition at line 181 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseObject()

JSONNode * JSONParser::parseObject ( )

Definition at line 46 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseString()

JSONNode * JSONParser::parseString ( )

Definition at line 174 of file Parser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ file

std::fstream JSONParser::file
private

Definition at line 5 of file Parser.hpp.

◆ tokenizer

Tokenizer JSONParser::tokenizer
private

Definition at line 6 of file Parser.hpp.


The documentation for this class was generated from the following files: