|
ATLAS Offline Software
|
Go to the documentation of this file.
46 std::ostringstream
str;
50 str <<
package << ":";
54 if (strncmp (
file,
"../", 3) == 0)
65 {
"message",
"warning",
"error",
"exception",
"abort"};
69 if (!
str.str().empty())
76 const char *envname = 0;
78 envname =
"ROOTCOREUTILS_ABORT";
80 envname =
"ROOTCOREUTILS_EXCEPTION";
83 const char *abort_type =
getenv (envname);
89 }
else if (strcmp (abort_type,
"abort") == 0)
92 }
else if (strcmp (abort_type,
"exception") == 0)
99 RCU_WARN_MSG (std::string (
"unknown value for ROOTCOREUTILS_ABORT ") + abort_type);
103 std::cout <<
str.str() << std::endl;
@ MESSAGE_UNSPECIFIED
description: unspecified message type
This module defines a variety of assert style macros.
Message()
effects: standard constructor guarantee: no-fail
#define RCU_WARN_MSG(message)
@ MESSAGE_EXCEPTION
description: send out an exception
MessageType type
description: the type of this message
const char * package
description: the location where the message was send
std::string getenv(const std::string &variableName)
get an environment variable
@ MESSAGE_ABORT
description: print and abort
const char * message
description: the actual message we are sending or 0 if there isn't one
void send() const
effects: print the given message guarantee: basic failures: i/o errors