packages feed

HROOT-tree-0.9.0.1: csrc/HROOTTreeTTree.h

#ifdef __cplusplus
extern "C" { 
#endif

#ifndef __HROOT_TREE__TTree__
#define __HROOT_TREE__TTree__

#include "HROOT-treeType.h"
#include "HROOTCoreTNamed.h"
#include "HROOTCoreTAttLine.h"
#include "HROOTCoreTAttFill.h"
#include "HROOTCoreTAttMarker.h"
#include "HROOTCoreTObject.h"
#include "HROOTCoreDeletable.h"
#include "HROOT-coreType.h"

#undef TTREE_DECL_VIRT 
#define TTREE_DECL_VIRT(Type) \
int Type ## _Branch ( Type ## _p p, const char* folder, int bufsize, int splitlevel ); \
TBranch_p Type ## _branch1 ( Type ## _p p, const char* name, void* address, const char* leaflist, int bufsize ); \
int Type ## _fillTree ( Type ## _p p )

#undef TTREE_DECL_NONVIRT 
#define TTREE_DECL_NONVIRT(Type) \
Type ## _p Type ## _newTTree ( const char* name, const char* title, int splitlevel )

#undef TTREE_DEF_VIRT
#define TTREE_DEF_VIRT(Type)\
int Type ## _Branch ( Type ## _p p, const char* folder, int bufsize, int splitlevel )\
{\
return TYPECASTMETHOD(Type,Branch,TTree)(p)->Branch(folder, bufsize, splitlevel);\
}\
TBranch_p Type ## _branch1 ( Type ## _p p, const char* name, void* address, const char* leaflist, int bufsize )\
{\
return to_nonconst<TBranch_t,TBranch>((TBranch*)TYPECASTMETHOD(Type,branch1,TTree)(p)->Branch(name, address, leaflist, bufsize));\
}\
int Type ## _fillTree ( Type ## _p p )\
{\
return TYPECASTMETHOD(Type,fillTree,TTree)(p)->Fill();\
}

#undef TTREE_DEF_NONVIRT
#define TTREE_DEF_NONVIRT(Type)\
Type ## _p Type ## _newTTree ( const char* name, const char* title, int splitlevel )\
{\
Type * newp = new Type (name, title, splitlevel); \
return to_nonconst<Type ## _t, Type >(newp);\
}

TNAMED_DECL_VIRT(TTree);
TATTLINE_DECL_VIRT(TTree);
TATTFILL_DECL_VIRT(TTree);
TATTMARKER_DECL_VIRT(TTree);
TOBJECT_DECL_VIRT(TTree);
DELETABLE_DECL_VIRT(TTree);


TTREE_DECL_VIRT(TTree);


TTREE_DECL_NONVIRT(TTree);


#endif // __HROOT_TREE__TTree__

#ifdef __cplusplus
}
#endif