| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
MsgStream.cpp File Reference
`#include "GaudiKernel/MsgStream.h"`
`#include "GaudiKernel/Message.h"`
`#include "GaudiKernel/GaudiException.h"`
`#include "GaudiKernel/IMessageSvc.h"`
`#include <iostream>`
`#include <stdarg.h>`
`#include <stdio.h>`
Include dependency graph for MsgStream.cpp:

Go to the source code of this file.

## Macros
#define | KERNEL_MSGSTREAM_CPP

## Functions
std::string | format (const char *fmt,...)
| MsgStream format utility "a la sprintf(...)".

## Macro Definition Documentation

#define KERNEL_MSGSTREAM_CPP

Definition at line 18 of file MsgStream.cpp.

## Function Documentation

std::string format | ( | const char * | fmt,
|  |  | ...
| ) |  |

MsgStream format utility "a la sprintf(...)".

Definition at line 133 of file MsgStream.cpp.

{
const int buffsize = 2048;
static char buffer[buffsize];
va_list arguments;
va_start( arguments, fmt );
if( vsprintf(buffer, fmt, arguments) >= buffsize )
throw GaudiException("Insufficient buffer size (2048) when formatting message",
"MsgStream", 0);
return std::string(buffer);
}