Euphoria
eu::io::ObjectQuery Struct Reference

#include <json.h>

Public Member Functions

 ObjectQuery (const jsonh::Object *o)
 
std::optional< jsonh::Value > get (const std::string &name)
 
std::optional< std::string > get_missing_errors_message ()
 

Public Attributes

const jsonh::Object * object
 
std::set< std::string > found
 
std::set< std::string > missing
 
std::vector< std::string > required
 

Detailed Description

Definition at line 37 of file json.h.

Constructor & Destructor Documentation

◆ ObjectQuery()

eu::io::ObjectQuery::ObjectQuery ( const jsonh::Object *  o)
explicit

Definition at line 128 of file json.cc.

Member Function Documentation

◆ get()

std::optional< jsonh::Value > eu::io::ObjectQuery::get ( const std::string &  name)

Definition at line 112 of file json.cc.

◆ get_missing_errors_message()

std::optional< std::string > eu::io::ObjectQuery::get_missing_errors_message ( )

Definition at line 134 of file json.cc.

Member Data Documentation

◆ found

std::set<std::string> eu::io::ObjectQuery::found

Definition at line 43 of file json.h.

◆ missing

std::set<std::string> eu::io::ObjectQuery::missing

Definition at line 44 of file json.h.

◆ object

const jsonh::Object* eu::io::ObjectQuery::object

Definition at line 41 of file json.h.

◆ required

std::vector<std::string> eu::io::ObjectQuery::required

Definition at line 45 of file json.h.


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