#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/Message.h"
#include "GaudiKernel/GaudiException.h"
#include "GaudiKernel/IMessageSvc.h"
#include <iostream>
#include <stdarg.h>
#include <stdio.h>
Go to the source code of this file.
#define KERNEL_MSGSTREAM_CPP |
std::string format |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
MsgStream format utility "a la sprintf(...)".
Definition at line 133 of file MsgStream.cpp.
135 const int buffsize = 2048;
136 static char buffer[buffsize];
138 va_start( arguments, fmt );
139 if( vsprintf(buffer, fmt, arguments) >= buffsize )
140 throw GaudiException(
"Insufficient buffer size (2048) when formatting message",
142 return std::string(buffer);
Define general base for Gaudi exception.