|
IPPL (Independent Parallel Particle Layer)
IPPL
|
#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 87 of file Inform.cpp.
References FormatBuf, MsgDest, NeedClose, OpenedSuccessfully, and setup().
Referenced by Inform(), outputMessage(), setMessageLevel(), and setOutputLevel().
| Inform::Inform | ( | const char * | prefix, |
| const char * | fname, | ||
| const WriteMode | opnmode, | ||
| int | pnode = 0 ) |
Definition at line 100 of file Inform.cpp.
References ippl::Comm, FormatBuf, MsgDest, NeedClose, OpenedSuccessfully, OVERWRITE, and setup().
| Inform::Inform | ( | const char * | myname, |
| std::ostream & | os, | ||
| int | pnode = 0 ) |
Definition at line 130 of file Inform.cpp.
References FormatBuf, MsgDest, NeedClose, OpenedSuccessfully, and setup().
| Inform::Inform | ( | const char * | myname, |
| const Inform & | os, | ||
| int | pnode = 0 ) |
Definition at line 143 of file Inform.cpp.
References FormatBuf, Inform(), MsgDest, NeedClose, OpenedSuccessfully, and setup().
| Inform::~Inform | ( | void | ) |
Definition at line 156 of file Inform.cpp.
|
private |
Definition at line 188 of file Inform.cpp.
References display_single_line(), MIN_INFORM_LEVEL, MsgLevel, On, and OutputLevel.
Referenced by outputMessage().
|
private |
Definition at line 163 of file Inform.cpp.
References ippl::Comm, MsgDest, MsgLevel, and Name.
Referenced by display_message().
|
inline |
|
inline |
|
inline |
Definition at line 113 of file Inform.h.
References MsgDest.
Referenced by PenningTrapManager< T, Dim >::dumpData(), and ippl::mpi::Communicator::writeLogsToFile().
|
inline |
Definition at line 74 of file Inform.h.
References MsgDest.
Referenced by ippl::BareField< T, Dim, ViewArgs >::write().
|
inline |
|
inline |
Definition at line 78 of file Inform.h.
References OutputLevel.
|
inline |
|
inline |
Definition at line 89 of file Inform.h.
References FormatBuf.
Referenced by operator<<(), operator<<(), and operator<<().
|
inline |
Definition at line 92 of file Inform.h.
References OpenedSuccessfully.
| Inform & Inform::outputMessage | ( | void | ) |
Definition at line 244 of file Inform.cpp.
References display_message(), FormatBuf, Inform(), MsgBuf, and PrintNode.
Referenced by endl().
|
inline |
Definition at line 111 of file Inform.h.
References FormatBuf.
Referenced by ChargedParticles< PLayout, T, Dim >::dumpBumponTail(), BumponTailInstabilityManager< T, Dim >::dumpBumponTailInstability(), ChargedParticles< PLayout, T, Dim >::dumpData(), PenningTrapManager< T, Dim >::dumpData(), ChargedParticles< PLayout, T, Dim >::dumpLandau(), LandauDampingManager< T, Dim >::dumpLandau(), ChargedParticles< PLayout, T, Dim >::dumpParticleData(), dumpVTK(), dumpVTK(), and ChargedParticles< PLayout, T, Dim >::gatherStatistics().
|
inline |
| void Inform::setDestination | ( | std::ostream & | dest | ) |
Definition at line 217 of file Inform.cpp.
|
inline |
|
inline |
Definition at line 101 of file Inform.h.
References FormatBuf.
Referenced by ChargedParticles< PLayout, T, Dim >::dumpBumponTail(), BumponTailInstabilityManager< T, Dim >::dumpBumponTailInstability(), ChargedParticles< PLayout, T, Dim >::dumpData(), PenningTrapManager< T, Dim >::dumpData(), ChargedParticles< PLayout, T, Dim >::dumpLandau(), LandauDampingManager< T, Dim >::dumpLandau(), ChargedParticles< PLayout, T, Dim >::dumpParticleData(), dumpVTK(), dumpVTK(), ChargedParticles< PLayout, T, Dim >::gatherStatistics(), and operator<<().
| Inform & Inform::setMessageLevel | ( | const int | ol | ) |
Definition at line 236 of file Inform.cpp.
References Inform(), 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 Inform(), MAX_INFORM_LEVEL, MIN_INFORM_LEVEL, and OutputLevel.
Referenced by ippl::mpi::Communicator::writeLogsToFile().
|
inline |
|
private |
Definition at line 67 of file Inform.cpp.
References ippl::Info, MIN_INFORM_LEVEL, MsgLevel, Name, On, OutputLevel, and PrintNode.
Referenced by Inform(), Inform(), Inform(), and Inform().
|
inline |
|
private |
Definition at line 122 of file Inform.h.
Referenced by fill(), fill(), flags(), flags(), getStream(), Inform(), Inform(), Inform(), Inform(), outputMessage(), precision(), precision(), setf(), setf(), unsetf(), width(), 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(), Inform(), Inform(), 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 |
|
private |
|
private |
|
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().