go-hep.org/x/hep@v0.38.1/groot/rbase/qobject.go (about) 1 // Copyright ©2023 The go-hep Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package rbase 6 7 import ( 8 "reflect" 9 10 "go-hep.org/x/hep/groot/rbytes" 11 "go-hep.org/x/hep/groot/root" 12 "go-hep.org/x/hep/groot/rtypes" 13 "go-hep.org/x/hep/groot/rvers" 14 ) 15 16 type QObject struct { 17 } 18 19 func (*QObject) Class() string { 20 return "TQObject" 21 } 22 23 func (*QObject) RVersion() int16 { 24 return rvers.QObject 25 } 26 27 func (qo *QObject) UnmarshalROOT(r *rbytes.RBuffer) error { 28 return r.Err() 29 } 30 31 func init() { 32 f := func() reflect.Value { 33 var v QObject 34 return reflect.ValueOf(&v) 35 } 36 rtypes.Factory.Add("TQObject", f) 37 } 38 39 var ( 40 _ root.Object = (*QObject)(nil) 41 _ rbytes.Unmarshaler = (*QObject)(nil) 42 )