Geant4 Cross Reference |
1 /* 1 /* 2 # <<BEGIN-copyright>> 2 # <<BEGIN-copyright>> 3 # <<END-copyright>> 3 # <<END-copyright>> 4 */ 4 */ 5 5 6 #include <stdio.h> 6 #include <stdio.h> 7 #include <stdlib.h> 7 #include <stdlib.h> 8 8 9 #include "ptwX.h" 9 #include "ptwX.h" 10 10 11 #if defined __cplusplus 11 #if defined __cplusplus 12 namespace GIDI { 12 namespace GIDI { 13 using namespace GIDI; 13 using namespace GIDI; 14 #endif 14 #endif 15 15 16 /* 16 /* 17 ********************************************** 17 ************************************************************ 18 */ 18 */ 19 void ptwX_simpleWrite( ptwXPoints const *ptwX, 19 void ptwX_simpleWrite( ptwXPoints const *ptwX, FILE *f, char const *format ) { 20 20 21 int64_t i1; 21 int64_t i1; 22 double *p1 = ptwX->points; 22 double *p1 = ptwX->points; 23 23 24 for( i1 = 0; i1 < ptwX->length; ++i1, ++p1 24 for( i1 = 0; i1 < ptwX->length; ++i1, ++p1 ) fprintf( f, format, *p1 ); 25 } 25 } 26 /* 26 /* 27 ********************************************** 27 ************************************************************ 28 */ 28 */ 29 void ptwX_simplePrint( ptwXPoints const *ptwX, 29 void ptwX_simplePrint( ptwXPoints const *ptwX, char const *format ) { 30 30 31 ptwX_simpleWrite( ptwX, stdout, format ); 31 ptwX_simpleWrite( ptwX, stdout, format ); 32 } 32 } 33 33 34 #if defined __cplusplus 34 #if defined __cplusplus 35 } 35 } 36 #endif 36 #endif 37 37