Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
JSONIOUtils.h
Go to the documentation of this file.
1#ifndef JSONIOUtils_h
2#define JSONIOUtils_h
3
4#include <string_view>
5#include <vector>
7
8class RooAbsBinning;
9
10bool startsWith(std::string_view str, std::string_view prefix);
11bool endsWith(std::string_view str, std::string_view suffix);
12std::string removeSuffix(std::string_view str, std::string_view suffix);
13std::unique_ptr<RooFit::Detail::JSONTree> varJSONString(const RooFit::Detail::JSONNode &treeRoot);
15double readBound(RooFit::Detail::JSONNode const &node, const char *key, double defaultValue);
16bool parseHS3Version(std::string const &version, int &major, int &minor);
17bool isHS3VersionBefore(std::string const &version, int major, int minor);
18std::vector<double> readEdges(const RooFit::Detail::JSONNode &node, std::string const &context);
19
20#endif
std::vector< double > readEdges(const RooFit::Detail::JSONNode &node, std::string const &context)
bool isHS3VersionBefore(std::string const &version, int major, int minor)
bool startsWith(std::string_view str, std::string_view prefix)
bool endsWith(std::string_view str, std::string_view suffix)
double readBound(RooFit::Detail::JSONNode const &node, const char *key, double defaultValue)
std::string removeSuffix(std::string_view str, std::string_view suffix)
bool parseHS3Version(std::string const &version, int &major, int &minor)
std::unique_ptr< RooFit::Detail::JSONTree > varJSONString(const RooFit::Detail::JSONNode &treeRoot)
void writeAxisBinning(RooFit::Detail::JSONNode &node, const RooAbsBinning &binning)
Abstract base class for RooRealVar binning definitions.