|
Gaudi Framework, version v21r10p1 |
| Home | Generated: 29 Jul 2010 |
#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.
Defines | |
| #define | KERNEL_MSGSTREAM_CPP |
Functions | |
| std::string | format (const char *fmt,...) |
| MsgStream format utility "a la sprintf(...)". | |
| #define KERNEL_MSGSTREAM_CPP |
Definition at line 19 of file MsgStream.cpp.
| std::string format | ( | const char * | fmt, | |
| ... | ||||
| ) |
MsgStream format utility "a la sprintf(...)".
Definition at line 108 of file MsgStream.cpp.
00109 { 00110 const int buffsize = 2048; 00111 static char buffer[buffsize]; 00112 va_list arguments; 00113 va_start( arguments, fmt ); 00114 if( vsprintf(buffer, fmt, arguments) >= buffsize ) 00115 throw GaudiException("Insufficient buffer size (2048) when formatting message", 00116 "MsgStream", 0); 00117 return std::string(buffer); 00118 }