21#include <nlohmann/json.hpp>
39 for (
Int_t i = 0; i< Nit; ++i)
50 printf(
" %10s |", clmn->EvalExpr(
data).c_str());
61 nlohmann::json jarr = nlohmann::json::array();
63 for (
Int_t i = 0; i < Nit; ++i) {
72 catch (
const std::exception&) {
74 row[chld->GetCName()] =
"err";
89 c->SetPrecision(prec);
90 gROOT->ProcessLine(
c->GetFunctionExpressionString().c_str());
92 if (
c->hasValidExpression()) {
134 const char *rtyp =
nullptr;
135 const void *fooptr =
nullptr;
146 << std::hex << std::showbase << (size_t)fooptr
#define R__LOG_ERROR(...)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
TClass * GetItemClass() const
void * GetDataPtr(Int_t i) const
void StreamPublicMethods(nlohmann::json &cj) const
std::function< double(void *)> fDoubleFoo
std::string GetFunctionExpressionString() const
std::function< bool(void *)> fBoolFoo
REveDataColumn(const std::string &n="REveDataColumn", const std::string &t="")
std::function< std::string(void *)> fStringFoo
std::string EvalExpr(void *iptr) const
void SetExpressionAndType(const std::string &expr, FieldType_e type)
bool hasValidExpression() const
void SetPrecision(Int_t prec)
virtual Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset)
Write core json.
const REveDataCollection * GetCollection() const
REveDataTable(const std::string &n="REveDataTable", const std::string &t="")
const REveDataCollection * fCollection
void AddNewColumn(const std::string &expr, const std::string &title, int prec=2)
virtual Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset)
Write core json.
virtual void AddElement(REveElement *el)
Add el to the list of children.
ElementId_t GetElementId() const
TClass instances represent classes, structs and namespaces in the ROOT type system.
const char * GetName() const override
Returns name of object.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
RLogChannel & REveLog()
Log channel for Eve diagnostics.