Webserv
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
JSONNode Class Reference

#include <Nodes.hpp>

Collaboration diagram for JSONNode:
Collaboration graph
[legend]

Data Structures

union  Values
 

Public Member Functions

JSONObject obj ()
 
JSONList lst ()
 
string str ()
 
int nbr ()
 
bool boo ()
 

Private Types

enum  Type {
  OBJECT , LIST , STRING , NUMBER ,
  BOOLEAN , NULL_TYPE
}
 

Private Member Functions

void setObject (JSONObject *object)
 
void setList (JSONList *list)
 
void setString (string *str)
 
void setNumber (int nbr)
 
void setBoolean (bool v)
 
void setNull ()
 
string stringify (int indentationLevel)
 

Private Attributes

union JSONNode::Values values
 
Type type
 

Friends

class JSONParser
 

Detailed Description

Definition at line 4 of file Nodes.hpp.

Member Enumeration Documentation

◆ Type

enum JSONNode::Type
private
Enumerator
OBJECT 
LIST 
STRING 
NUMBER 
BOOLEAN 
NULL_TYPE 

Definition at line 13 of file Nodes.hpp.

Member Function Documentation

◆ boo()

bool JSONNode::boo ( )

Definition at line 23 of file Nodes.cpp.

Here is the caller graph for this function:

◆ lst()

JSONList JSONNode::lst ( )

Definition at line 8 of file Nodes.cpp.

Here is the caller graph for this function:

◆ nbr()

int JSONNode::nbr ( )

Definition at line 18 of file Nodes.cpp.

Here is the caller graph for this function:

◆ obj()

JSONObject JSONNode::obj ( )

Definition at line 3 of file Nodes.cpp.

Here is the caller graph for this function:

◆ setBoolean()

void JSONNode::setBoolean ( bool  v)
private

Definition at line 45 of file Nodes.cpp.

Here is the caller graph for this function:

◆ setList()

void JSONNode::setList ( JSONList list)
private

Definition at line 33 of file Nodes.cpp.

Here is the caller graph for this function:

◆ setNull()

void JSONNode::setNull ( )
private

Definition at line 49 of file Nodes.cpp.

Here is the caller graph for this function:

◆ setNumber()

void JSONNode::setNumber ( int  nbr)
private

Definition at line 41 of file Nodes.cpp.

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

◆ setObject()

void JSONNode::setObject ( JSONObject object)
private

Definition at line 29 of file Nodes.cpp.

Here is the caller graph for this function:

◆ setString()

void JSONNode::setString ( string *  str)
private

Definition at line 37 of file Nodes.cpp.

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

◆ str()

string JSONNode::str ( )

Definition at line 13 of file Nodes.cpp.

Here is the caller graph for this function:

◆ stringify()

string JSONNode::stringify ( int  indentationLevel)
private

Definition at line 51 of file Nodes.cpp.

Friends And Related Symbol Documentation

◆ JSONParser

friend class JSONParser
friend

Definition at line 31 of file Nodes.hpp.

Field Documentation

◆ type

Type JSONNode::type
private

Definition at line 21 of file Nodes.hpp.

◆ values

union JSONNode::Values JSONNode::values
private

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