OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <Inform.h>
Public Types | |
enum | WriteMode { OVERWRITE , APPEND } |
typedef std::ios_base::fmtflags | FmtFlags_t |
Public Member Functions | |
Inform (const char *=0, int=0) | |
Inform (const char *prefix, const char *fname, const WriteMode, int=0) | |
Inform (const char *, std::ostream &, int=0) | |
Inform (const char *myname, const Inform &os, int pnode=0) | |
~Inform () | |
void | on (const bool o) |
bool | isOn () const |
void | setDestination (std::ostream &dest) |
std::ostream & | getDestination () |
Inform & | setOutputLevel (const int) |
int | getOutputLevel (void) const |
Inform & | setMessageLevel (const int) |
int | getMessageLevel (void) const |
int | getPrintNode () const |
void | setPrintNode (int n=(-1)) |
std::ostream & | getStream () |
bool | openedSuccessfully () |
Inform & | outputMessage (void) |
FmtFlags_t | setf (FmtFlags_t setbits, FmtFlags_t field) |
FmtFlags_t | setf (FmtFlags_t f) |
void | unsetf (FmtFlags_t f) |
FmtFlags_t | flags () const |
FmtFlags_t | flags (FmtFlags_t f) |
int | width () const |
int | width (int w) |
char | fill () const |
char | fill (char c) |
int | precision () const |
int | precision (int p) |
void | flush () |
Private Member Functions | |
void | display_message (char *) |
void | display_single_line (char *) |
void | setup (const char *, int) |
Private Attributes | |
char * | Name |
std::string | MsgBuf |
std::ostringstream | FormatBuf |
std::ostream * | MsgDest |
bool | NeedClose |
bool | OpenedSuccessfully |
bool | On |
int | PrintNode |
int | OutputLevel |
int | MsgLevel |
typedef std::ios_base::fmtflags Inform::FmtFlags_t |
enum Inform::WriteMode |
Inform::Inform | ( | const char * | myname = 0 , |
int | pnode = 0 |
||
) |
Definition at line 77 of file Inform.cpp.
References MsgDest, NeedClose, and setup().
Inform::Inform | ( | const char * | prefix, |
const char * | fname, | ||
const WriteMode | opnmode, | ||
int | pnode = 0 |
||
) |
Definition at line 91 of file Inform.cpp.
References endl(), MsgDest, IpplInfo::myNode(), NeedClose, OpenedSuccessfully, OVERWRITE, and setup().
Inform::Inform | ( | const char * | myname, |
std::ostream & | os, | ||
int | pnode = 0 |
||
) |
Definition at line 123 of file Inform.cpp.
References MsgDest, NeedClose, and setup().
Inform::Inform | ( | const char * | myname, |
const Inform & | os, | ||
int | pnode = 0 |
||
) |
Definition at line 137 of file Inform.cpp.
References NeedClose, and setup().
Inform::~Inform | ( | void | ) |
Definition at line 150 of file Inform.cpp.
|
private |
Definition at line 186 of file Inform.cpp.
References display_single_line(), MIN_INFORM_LEVEL, MsgLevel, On, and OutputLevel.
Referenced by outputMessage().
|
private |
Definition at line 159 of file Inform.cpp.
References endl(), IpplInfo::getNodes(), MsgDest, MsgLevel, IpplInfo::myNode(), and Name.
Referenced by display_message().
|
inline |
Definition at line 111 of file Inform.h.
References Physics::c, and FormatBuf.
|
inline |
Definition at line 106 of file Inform.h.
References FormatBuf.
Referenced by BeamStrippingPhysics::print(), PartBunchBase< T, Dim >::print(), PolynomialTimeDependence::print(), and ScatteringPhysics::print().
|
inline |
|
inline |
Definition at line 114 of file Inform.h.
References MsgDest.
Referenced by Population< Individual_t >::computeHypervolume().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 92 of file Inform.h.
References OpenedSuccessfully.
Inform & Inform::outputMessage | ( | void | ) |
Definition at line 248 of file Inform.cpp.
References display_message(), FormatBuf, MsgBuf, IpplInfo::myNode(), and PrintNode.
Referenced by endl().
|
inline |
Definition at line 112 of file Inform.h.
References FormatBuf.
Referenced by RFCavity::getAutoPhaseEstimate(), TravelingWave::getAutoPhaseEstimate(), RFCavity::getAutoPhaseEstimateFallback(), operator<<(), Sequence::print(), BoundingBox::print(), Tps< T >::put(), FTps< T, N >::put(), LinearFun< T, N >::put(), TransportFun< T, N >::put(), DataSink::writeImpactStatistics(), and Distribution::writeOutFileInjection().
|
inline |
void Inform::setDestination | ( | std::ostream & | dest | ) |
Definition at line 216 of file Inform.cpp.
References MsgDest, and NeedClose.
Referenced by run_opal().
|
inline |
|
inline |
Definition at line 101 of file Inform.h.
References FormatBuf.
Referenced by operator<<(), FieldDebugPrint< T, Dim >::print(), FieldPrint< T, Dim >::print(), FieldDebugPrint< T, Dim >::printelem(), LinearFun< T, N >::put(), and Distribution::writeOutFileHeader().
Inform & Inform::setMessageLevel | ( | const int | ol | ) |
Definition at line 238 of file Inform.cpp.
References MAX_INFORM_LEVEL, MIN_INFORM_LEVEL, and MsgLevel.
Referenced by level1(), level2(), level3(), level4(), and level5().
Inform & Inform::setOutputLevel | ( | const int | ol | ) |
Definition at line 228 of file Inform.cpp.
References MAX_INFORM_LEVEL, MIN_INFORM_LEVEL, and OutputLevel.
Referenced by IpplInfo::IpplInfo().
|
inline |
Definition at line 86 of file Inform.h.
References Hypervolume::n, and PrintNode.
|
private |
Definition at line 55 of file Inform.cpp.
References getOutputLevel(), IpplInfo::Info, MIN_INFORM_LEVEL, MsgLevel, Name, On, OutputLevel, and PrintNode.
Referenced by Inform().
|
inline |
|
inline |
Definition at line 108 of file Inform.h.
References FormatBuf.
Referenced by Distribution::writeOutFileHeader().
|
private |
Definition at line 122 of file Inform.h.
Referenced by fill(), flags(), getStream(), outputMessage(), precision(), setf(), unsetf(), and width().
|
private |
Definition at line 120 of file Inform.h.
Referenced by outputMessage().
|
private |
Definition at line 125 of file Inform.h.
Referenced by display_single_line(), flush(), getDestination(), Inform(), setDestination(), and ~Inform().
|
private |
Definition at line 146 of file Inform.h.
Referenced by display_message(), display_single_line(), getMessageLevel(), setMessageLevel(), and setup().
|
private |
Definition at line 117 of file Inform.h.
Referenced by display_single_line(), setup(), and ~Inform().
|
private |
Definition at line 128 of file Inform.h.
Referenced by Inform(), setDestination(), and ~Inform().
|
private |
|
private |
Definition at line 131 of file Inform.h.
Referenced by Inform(), and openedSuccessfully().
|
private |
Definition at line 141 of file Inform.h.
Referenced by display_message(), getOutputLevel(), setOutputLevel(), and setup().
|
private |
Definition at line 137 of file Inform.h.
Referenced by getPrintNode(), outputMessage(), setPrintNode(), and setup().