#include <MELAOutputStreamer.h>
Definition at line 21 of file MELAOutputStreamer.h.
◆ MELAOutputStreamer()
MELAOutputStreamer::MELAOutputStreamer |
( |
const char * |
fname, |
|
|
std::ios_base::openmode |
fmode = std::ios_base::out , |
|
|
bool |
printError = false |
|
) |
| |
◆ ~MELAOutputStreamer()
MELAOutputStreamer::~MELAOutputStreamer |
( |
| ) |
|
◆ close()
void MELAOutputStreamer::close |
( |
| ) |
|
◆ fill() [1/2]
char MELAOutputStreamer::fill |
( |
| ) |
const |
◆ fill() [2/2]
char MELAOutputStreamer::fill |
( |
char |
fillch | ) |
|
◆ open()
void MELAOutputStreamer::open |
( |
const char * |
fname, |
|
|
std::ios_base::openmode |
fmode = std::ios_base::out |
|
) |
| |
◆ operator<<() [1/6]
◆ operator<<() [2/6]
MELAOutputStreamer & MELAOutputStreamer::operator<< |
( |
std::ios_base &(*)(std::ios_base &) |
fcn | ) |
|
◆ operator<<() [3/6]
MELAOutputStreamer & MELAOutputStreamer::operator<< |
( |
std::ostream &(*)(std::ostream &) |
fcn | ) |
|
◆ operator<<() [4/6]
template<typename T , typename U >
Definition at line 90 of file MELAOutputStreamer.h.
91 *
this <<
"(" << val.first <<
", " << val.second <<
")";
◆ operator<<() [5/6]
Definition at line 97 of file MELAOutputStreamer.h.
98 for (
typename std::vector<T>::const_iterator it=val.cbegin(); it!=val.cend(); it++){
100 if (it!=val.cend()-1) *
this <<
", ";
◆ operator<<() [6/6]
◆ width() [1/2]
std::streamsize MELAOutputStreamer::width |
( |
| ) |
const |
◆ width() [2/2]
std::streamsize MELAOutputStreamer::width |
( |
std::streamsize |
wide | ) |
|
◆ writeCentered()
template<typename T >
template void MELAOutputStreamer::writeCentered< TString > |
( |
const T & |
val, |
|
|
char |
fillch = ' ' , |
|
|
std::streamsize |
gapsize = 0 |
|
) |
| |
Definition at line 131 of file MELAOutputStreamer.h.
132 char deffillch = this->
fill(fillch);
134 std::stringstream tmpss;
136 std::string tmpstr = tmpss.str();
137 std::streamsize strlength = (std::streamsize) tmpstr.length();
139 if (strlength>gapsize) *
this << std::setw(gapsize) <<
"";
141 std::streamsize leftgap = (gapsize+strlength)/2;
142 std::streamsize rightgap = gapsize-leftgap;
143 *
this << std::setw(leftgap) << tmpstr << std::setw(rightgap) <<
"";
146 this->
fill(deffillch);
◆ stdout_ptr
std::ostream* MELAOutputStreamer::stdout_ptr |
|
protected |
◆ theFile
std::ofstream MELAOutputStreamer::theFile |
|
protected |
The documentation for this class was generated from the following files: