This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
sb.h
Go to the documentation of this file.
1
#ifndef SB_H
2
#define SB_H
3
4
#include <sstream>
5
6
// in-line string builder (eg. for exception messages)
7
// throw std::runtime_error(SB()<<"Answer: !"<<42);
8
struct
SB
{
9
std::ostringstream
strm
;
10
SB
() {}
11
operator
std::string()
const
{
return
strm.str(); }
12
template
<
typename
T>
13
SB
&
operator<<
(T
i
) { strm<<
i
;
return
*
this
; }
14
};
15
16
#endif // SB_H
i
int i
Definition:
scan.c:967
SB::operator<<
SB & operator<<(T i)
Definition:
sb.h:13
SB::SB
SB()
Definition:
sb.h:10
SB
Definition:
sb.h:8
SB::strm
std::ostringstream strm
Definition:
sb.h:9
modules
pva2pva
common
sb.h
Generated by
1.8.11