#ifndef __JLANG__JPP__ #define __JLANG__JPP__ /** * \file * * Jpp environment information. * * \author mdejong */ /** * Name space for %KM3NeT */ namespace KM3NET {} /** * Name space for %Antares */ namespace ANTARES {} namespace JLANG {} /** * This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES). */ namespace JPP { using namespace JLANG; } namespace JLANG { /** * Get namespace. * * \return namespace */ inline const char* getNamespace() { #define KM3NET 1 #define KM3NET_HIGHQE 2 #define ANTARES 3 #if NAMESPACE == ANTARES return "ANTARES"; #elif NAMESPACE == KM3NET return "KM3NET"; #elif NAMESPACE == KM3NET_HIGHQE return "KM3NET_HIGHQE"; #else return "?"; #endif #undef KM3NET #undef KM3NET_HIGHQE #undef ANTARES } /** * Get GIT version. * * \return GIT version */ inline const char* getGITVersion() { #ifdef GIT_VERSION return GIT_VERSION; #else return "?"; #endif } /** * Get GIT commit. * * \return GIT commit */ inline const char* getGITCommit() { #ifdef GIT_COMMIT return GIT_COMMIT; #else return "?"; #endif } /** * Get GIT date. * * \return GIT date */ inline const char* getGITDate() { #ifdef GIT_DATE return GIT_DATE; #else return "?"; #endif } /** * Get source. * * \return source */ inline const char* getSource() { #ifdef SOURCE return SOURCE; #else return "?"; #endif } } #endif