AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::json::JSONItem Class Reference

#include <reader.hpp>

+ Collaboration diagram for anch::json::JSONItem:

Public Member Functions

 JSONItem ()=delete
 
 JSONItem (anch::json::EventType type, anch::json::ReaderContext &context)
 
virtual ~JSONItem () noexcept
 
anch::json::EventType getType () const
 
const std::any & getValue () const
 

Detailed Description

JSON event

Author
Vincent Lachenal
Since
0.1

Constructor & Destructor Documentation

◆ JSONItem() [1/2]

anch::json::JSONItem::JSONItem ( )
delete

Forbids JSONEvent default constructor

◆ JSONItem() [2/2]

anch::json::JSONItem::JSONItem ( anch::json::EventType type,
anch::json::ReaderContext & context )

JSONEvent constructor

Parameters
typethe event type
contextthe context for reading found value when needed

◆ ~JSONItem()

virtual anch::json::JSONItem::~JSONItem ( )
virtualnoexcept

JSONEvent destructor

Member Function Documentation

◆ getType()

anch::json::EventType anch::json::JSONItem::getType ( ) const

Event type getter

Returns
the type
+ Here is the call graph for this function:

◆ getValue()

const std::any & anch::json::JSONItem::getValue ( ) const

Value getter

Returns
the value (can have no value)
+ Here is the call graph for this function:

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