#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-grafType.h" #include "HROOTCoreTNamed.h" #include "HROOTCoreTAttLine.h" #include "HROOTCoreTAttFill.h" #include "HROOTCoreTAtt3D.h" #include "HROOTCoreTObject.h" #include "STDDeletable.h" #include "HROOT-coreType.h" #define TSHAPE_DECL_VIRT(Type) \ #define TSHAPE_DECL_NONVIRT(Type) \ Type##_p Type##_newTShape ( const char* name, const char* title, const char* material ); #define TSHAPE_DECL_ACCESSOR(Type) \ #define TSHAPE_DEF_VIRT(Type) \ #define TSHAPE_DEF_NONVIRT(Type) \ Type##_p Type##_newTShape ( const char* name, const char* title, const char* material ) {\ Type* newp=new Type(name, title, material);return from_nonconst_to_nonconst(newp);\ } #define TSHAPE_DEF_ACCESSOR(Type) \ TNAMED_DECL_VIRT(TShape) TATTLINE_DECL_VIRT(TShape) TATTFILL_DECL_VIRT(TShape) TATT3D_DECL_VIRT(TShape) TOBJECT_DECL_VIRT(TShape) DELETABLE_DECL_VIRT(TShape) TSHAPE_DECL_VIRT(TShape) TSHAPE_DECL_NONVIRT(TShape) TSHAPE_DECL_ACCESSOR(TShape) #ifdef __cplusplus } #endif