Definition at line 185 of file JSONInterface.h.
|
static std::unique_ptr< JSONTree > | create () |
|
static std::unique_ptr< JSONTree > | create (std::istream &is) |
|
static std::unique_ptr< JSONTree > | create (std::string const &str) |
|
static std::string | getBackend () |
| Returns the name of the library that serves as the backend for the JSON interface, which is either "nlohmann-json" or "rapidyaml" .
|
|
static bool | hasBackend (std::string const &name) |
| Check if ROOT was compiled with support for a certain JSON backend library.
|
|
static void | setBackend (std::string const &name) |
| Set the library that serves as the backend for the JSON interface.
|
|
#include <RooFit/Detail/JSONInterface.h>
◆ Backend
◆ ~JSONTree()
virtual RooFit::Detail::JSONTree::~JSONTree |
( |
| ) |
|
|
virtualdefault |
◆ create() [1/3]
std::unique_ptr< JSONTree > RooFit::Detail::JSONTree::create |
( |
| ) |
|
|
static |
◆ create() [2/3]
std::unique_ptr< JSONTree > RooFit::Detail::JSONTree::create |
( |
std::istream & |
is | ) |
|
|
static |
◆ create() [3/3]
std::unique_ptr< JSONTree > RooFit::Detail::JSONTree::create |
( |
std::string const & |
str | ) |
|
|
static |
◆ createImpl()
template<typename... Args>
std::unique_ptr< JSONTree > RooFit::Detail::JSONTree::createImpl |
( |
Args &&... |
args | ) |
|
|
staticprivate |
◆ getBackend()
std::string RooFit::Detail::JSONTree::getBackend |
( |
| ) |
|
|
static |
Returns the name of the library that serves as the backend for the JSON interface, which is either "nlohmann-json"
or "rapidyaml"
.
- Returns
- Backend name as a string.
Definition at line 126 of file JSONInterface.cxx.
◆ getBackendEnum()
◆ hasBackend()
bool RooFit::Detail::JSONTree::hasBackend |
( |
std::string const & |
name | ) |
|
|
static |
Check if ROOT was compiled with support for a certain JSON backend library.
- Parameters
-
[in] | name | Name of the backend. |
Definition at line 103 of file JSONInterface.cxx.
◆ rootnode()
virtual JSONNode & RooFit::Detail::JSONTree::rootnode |
( |
| ) |
|
|
pure virtual |
◆ setBackend()
void RooFit::Detail::JSONTree::setBackend |
( |
std::string const & |
name | ) |
|
|
static |
Set the library that serves as the backend for the JSON interface.
Note that the "rapidyaml"
backend is only supported if rapidyaml was found on the system when ROOT was compiled.
- Parameters
-
[in] | name | Name of the backend, can be either "nlohmann-json" or "rapidyaml" . |
Definition at line 134 of file JSONInterface.cxx.
The documentation for this class was generated from the following files: