EventAnalysis  1.0.0
RootOutputStruct.h
Go to the documentation of this file.
1 /*
2  * RootOutputStruct.h
3  *
4  * Created on: 19 Sep 2017
5  * Author: Nicola Mori
6  */
7 
10 #ifndef ROOTOUTPUTSTRUCT_H_
11 #define ROOTOUTPUTSTRUCT_H_
12 
13 #include <string>
14 
25 
26  virtual ~RootOutputStruct() {}
27 
36  virtual const char *GetDescriptor() = 0;
37 
46  RootOutputStruct *GetAddress() { return (RootOutputStruct *)((char *)this + sizeof(void *)); }
47 };
48 
49 #endif /* ROOTOUTPUTSTRUCT_H_ */
virtual const char * GetDescriptor()=0
Getter method for the leaf list descriptor.
Base struct for Root output.
Definition: RootOutputStruct.h:24
RootOutputStruct * GetAddress()
The actual data member address.
Definition: RootOutputStruct.h:46
virtual ~RootOutputStruct()
Definition: RootOutputStruct.h:26