Geant4-11
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
MCGIDI_version.cc File Reference
#include "MCGIDI.h"

Go to the source code of this file.

Functions

const char * MCGIDI_version (void)
 
int MCGIDI_versionMajor (void)
 
int MCGIDI_versionMinor (void)
 
int MCGIDI_versionPatchLevel (void)
 

Variables

static char versionStr [64] = ""
 

Function Documentation

◆ MCGIDI_version()

const char * MCGIDI_version ( void  )

Definition at line 13 of file MCGIDI_version.cc.

13 {
14
15 if( versionStr[0] == 0 ) sprintf( versionStr, "MCGIDI version %d.%d.%d", MCGIDI_VERSION_MAJOR, MCGIDI_VERSION_MINOR, MCGIDI_VERSION_PATCHLEVEL );
16 return( versionStr );
17}
#define MCGIDI_VERSION_MAJOR
Definition: MCGIDI.h:8
#define MCGIDI_VERSION_PATCHLEVEL
Definition: MCGIDI.h:10
#define MCGIDI_VERSION_MINOR
Definition: MCGIDI.h:9
static char versionStr[64]

References MCGIDI_VERSION_MAJOR, MCGIDI_VERSION_MINOR, MCGIDI_VERSION_PATCHLEVEL, and versionStr.

◆ MCGIDI_versionMajor()

int MCGIDI_versionMajor ( void  )

Definition at line 21 of file MCGIDI_version.cc.

21{ return( MCGIDI_VERSION_MAJOR ); }

References MCGIDI_VERSION_MAJOR.

◆ MCGIDI_versionMinor()

int MCGIDI_versionMinor ( void  )

Definition at line 22 of file MCGIDI_version.cc.

22{ return( MCGIDI_VERSION_MINOR ); }

References MCGIDI_VERSION_MINOR.

◆ MCGIDI_versionPatchLevel()

int MCGIDI_versionPatchLevel ( void  )

Definition at line 23 of file MCGIDI_version.cc.

23{ return( MCGIDI_VERSION_PATCHLEVEL ); }

References MCGIDI_VERSION_PATCHLEVEL.

Variable Documentation

◆ versionStr

char versionStr[64] = ""
static

Definition at line 8 of file MCGIDI_version.cc.

Referenced by MCGIDI_version().