21#include <nlohmann/json.hpp>
39 for (
Int_t i = 0; i< Nit; ++i)
50 printf(
" %10s |", clmn->EvalExpr(data).c_str());
63 for (
Int_t i = 0; i < Nit; ++i) {
70 row[chld->GetCName()] = clmn->
EvalExpr(data);
72 catch (
const std::exception&
e) {
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(...)
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.
virtual const char * GetName() const
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.
basic_json< std::map, std::vector, std::string, bool, std::int64_t, std::uint64_t, double, std::allocator, adl_serializer, std::vector< std::uint8_t > > json