00001
00002
00017 #ifndef ATHCONTAINERS_ERROR_H
00018 #define ATHCONTAINERS_ERROR_H
00019
00020
00021 #ifdef XAOD_STANDALONE
00022
00023 #include <iostream>
00024 #include <string>
00025 #include <typeinfo>
00026
00027 #define ATHCONTAINERS_ERROR(ctx, msg) \
00028 std::cout << ctx << "ERROR " << __FILE__ << ":" << __LINE__ << " " \
00029 << __func__ << ": ERROR: " << msg << "\n"
00030
00031
00032 namespace AthContainers_detail {
00033
00034 std::string typeinfoName (const std::type_info& ti);
00035
00036 }
00037
00038
00039 #else
00040
00041 #include "AthenaKernel/errorcheck.h"
00042 #include "GaudiKernel/System.h"
00043
00044 #define ATHCONTAINERS_ERROR(ctx, msg) \
00045 errorcheck::ReportMessage(MSG::ERROR, ERRORCHECK_ARGS, ctx).msgstream() << msg
00046
00047 namespace AthContainers_detail {
00048
00049 using System::typeinfoName;
00050
00051 }
00052
00053 #endif // not XAOD_STANDALONE
00054
00055
00056 #endif // not ATHCONTAINERS_ERROR_H