Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
JSONIOUtils.h File Reference
#include <string_view>
#include <vector>
#include <RooFit/Detail/JSONInterface.h>
Include dependency graph for JSONIOUtils.h:
This graph shows which files directly or indirectly include this file:

Functions

bool endsWith (std::string_view str, std::string_view suffix)
 
bool isHS3VersionBefore (std::string const &version, int major, int minor)
 
bool parseHS3Version (std::string const &version, int &major, int &minor)
 
std::string removeSuffix (std::string_view str, std::string_view suffix)
 
bool startsWith (std::string_view str, std::string_view prefix)
 
void writeAxisBinning (RooFit::Detail::JSONNode &node, const RooAbsBinning &binning)
 

Variables

constexpr const char * fixedValueKey = "value"
 

Function Documentation

◆ endsWith()

bool endsWith ( std::string_view str,
std::string_view suffix )

Definition at line 16 of file JSONIOUtils.cxx.

◆ isHS3VersionBefore()

bool isHS3VersionBefore ( std::string const & version,
int major,
int minor )

Definition at line 70 of file JSONIOUtils.cxx.

◆ parseHS3Version()

bool parseHS3Version ( std::string const & version,
int & major,
int & minor )

Definition at line 46 of file JSONIOUtils.cxx.

◆ removeSuffix()

std::string removeSuffix ( std::string_view str,
std::string_view suffix )

Definition at line 21 of file JSONIOUtils.cxx.

◆ startsWith()

bool startsWith ( std::string_view str,
std::string_view prefix )

Definition at line 11 of file JSONIOUtils.cxx.

◆ writeAxisBinning()

void writeAxisBinning ( RooFit::Detail::JSONNode & node,
const RooAbsBinning & binning )

Definition at line 29 of file JSONIOUtils.cxx.

Variable Documentation

◆ fixedValueKey

constexpr const char* fixedValueKey = "value"
inlineconstexpr

Definition at line 17 of file JSONIOUtils.h.