Go to the source code of this file.
◆ SET_PORTABLEHOSTOBJECT_READ_RULES
#define SET_PORTABLEHOSTOBJECT_READ_RULES |
( |
|
OBJECT | ) |
|
Value:static bool EDM_CONCATENATE(set_PortableHostObject_read_rules_done_at_, __LINE__) [[maybe_unused]] = \
ROOT::set_PortableHostObject_read_rules<OBJECT>(
EDM_STRINGIZE(OBJECT))
#define EDM_CONCATENATE(a, b)
#define EDM_STRINGIZE(token)
Definition at line 72 of file PortableHostObjectReadRules.h.
◆ readPortableHostObject_v1()
template<typename T >
static void readPortableHostObject_v1 |
( |
char * |
target, |
|
|
TVirtualObject * |
from_buffer |
|
) |
| |
|
static |
Definition at line 13 of file PortableHostObjectReadRules.h.
References filterCSVwithJSON::target.
16 using Product =
typename Object::Product;
27 char *address =
static_cast<char *
>(from_buffer->GetObject());
29 static ptrdiff_t product_offset = from_buffer->GetClass()->GetDataMemberOffset(
"product_");
31 OnFile onfile = {*(Product **)(address + product_offset)};
34 Object *newObj = (Object *)
target;
37 Object::ROOTReadStreamer(newObj, *onfile.product_);