Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Namespaces | Macros | Functions
JPrint.hh File Reference

I/O formatting auxiliaries. More...

#include <string>
#include <ostream>
#include <sstream>
#include <iomanip>

Go to the source code of this file.

Namespaces

 JEEP
 General puprpose classes and methods.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Macros

#define MAKE_STRING(A)   (static_cast<std::ostringstream&>(JEEP::getOstream() << A << std::flush)).str()
 Make string. More...
 
#define MAKE_CSTRING(A)   JEEP::getCString(MAKE_STRING(A))
 Make C-string. More...
 

Functions

std::ostream & JEEP::getOstream ()
 Get output stream for conversion to std::string. More...
 
const char * JEEP::getCString (const std::string &input)
 Get output C-string. More...
 

Detailed Description

I/O formatting auxiliaries.

Author
mdejong

Definition in file JPrint.hh.

Macro Definition Documentation

◆ MAKE_STRING

#define MAKE_STRING (   A)    (static_cast<std::ostringstream&>(JEEP::getOstream() << A << std::flush)).str()

Make string.

Parameters
Astd::ostream compatible construct
Returns
std::string

Definition at line 63 of file JPrint.hh.

◆ MAKE_CSTRING

#define MAKE_CSTRING (   A)    JEEP::getCString(MAKE_STRING(A))

Make C-string.

Parameters
Astd::ostream compatible construct
Returns
C-string

Definition at line 72 of file JPrint.hh.