Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JPrint.hh File Reference

I/O formatting auxiliaries. More...

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

Go to the source code of this file.

Namespaces

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

Macros

#define MAKE_STRING(A)
 Make string.
 
#define MAKE_CSTRING(A)
 Make C-string.
 

Functions

const char * JEEP::getCString (const std::string &input)
 Get output C-string.
 

Detailed Description

I/O formatting auxiliaries.

Author
mdejong

Definition in file JPrint.hh.

Macro Definition Documentation

◆ MAKE_STRING

#define MAKE_STRING ( A)
Value:
std::invoke( [&]() { std::ostringstream out; out << A; return out.str(); } )

Make string.

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

Definition at line 48 of file JPrint.hh.

◆ MAKE_CSTRING

#define MAKE_CSTRING ( A)
Value:
#define MAKE_STRING(A)
Make string.
Definition JPrint.hh:48
const char * getCString(const std::string &input)
Get output C-string.
Definition JPrint.hh:31

Make C-string.

Parameters
Astd::ostream compatible construct
Returns
C-string

Definition at line 57 of file JPrint.hh.