#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-grafType.h" #include "HROOTGrafTShape.h" #include "HROOTCoreTNamed.h" #include "HROOTCoreTAttLine.h" #include "HROOTCoreTAttFill.h" #include "HROOTCoreTAtt3D.h" #include "HROOTCoreTObject.h" #include "STDDeletable.h" #define TPCON_DECL_VIRT(Type) \ #define TPCON_DECL_NONVIRT(Type) \ Type##_p Type##_newTPCON ( const char* name, const char* title, const char* material, float phi1, float dphi1, int nz ); #define TPCON_DECL_ACCESSOR(Type) \ #define TPCON_DEF_VIRT(Type) \ #define TPCON_DEF_NONVIRT(Type) \ Type##_p Type##_newTPCON ( const char* name, const char* title, const char* material, float phi1, float dphi1, int nz ) {\ Type* newp=new Type(name, title, material, phi1, dphi1, nz);return from_nonconst_to_nonconst(newp);\ } #define TPCON_DEF_ACCESSOR(Type) \ TSHAPE_DECL_VIRT(TPCON) TNAMED_DECL_VIRT(TPCON) TATTLINE_DECL_VIRT(TPCON) TATTFILL_DECL_VIRT(TPCON) TATT3D_DECL_VIRT(TPCON) TOBJECT_DECL_VIRT(TPCON) DELETABLE_DECL_VIRT(TPCON) TPCON_DECL_VIRT(TPCON) TPCON_DECL_NONVIRT(TPCON) TPCON_DECL_ACCESSOR(TPCON) #ifdef __cplusplus } #endif