Welcome to ClientVPS Mirrors

dvi2bitmap: stringstream.h Source File
dvi2bitmap  dvi2bitmap1.0
stringstream.h
Go to the documentation of this file.
1 /* This file is part of dvi2bitmap; see README for copyrights and licence */
2 
3 #ifndef STRINGSTREAM_H_LOADED
4 #define STRINGSTREAM_H_LOADED 1
5 
6 #include <config.h>
7 
8 #ifdef HAVE_SSTREAM
9 
10 #include <sstream>
11 #define SSTREAM ostringstream
12 #define SS_C_STR(s) (s).str().c_str()
13 #define SS_STRING(s) (s).str()
14 
15 using STD::ostringstream;
16 
17 #elif HAVE_STRSTREAM
18 
19 #include <strstream>
20 #define SSTREAM ostrstream
21 #define SS_C_STR(s) (s).str()
22 /* Add the end-of-string to the stringbuf and convert it to a string */
23 #define SS_STRING(s) ((s)<<ends,string((s).str()))
24 
25 using STD::ostrstream;
26 using STD::ends;
27 
28 #else
29 #error "Neither HAVE_SSTREAM nor HAVE_STRSTREAM is defined!"
30 #endif
31 
32 #endif /* STRINGSTREAM_H_LOADED */

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.