Auxiliary class to control standard input and output.
More...
#include <JCommunicator.hh>
Auxiliary class to control standard input and output.
Definition at line 23 of file JCommunicator.hh.
JEEP::JCommunicator::JCommunicator |
( |
| ) |
|
|
inline |
JEEP::JCommunicator::JCommunicator |
( |
const bool |
verbose | ) |
|
|
inline |
Constructor.
- Parameters
-
verbose | disable I/O if false; else enable |
Definition at line 38 of file JCommunicator.hh.
bool JEEP::JCommunicator::getVerbose |
( |
| ) |
const |
|
inline |
Get verbose mode.
- Returns
- if true I/O enabled; else disabled
Definition at line 48 of file JCommunicator.hh.
void JEEP::JCommunicator::setVerbose |
( |
const bool |
verbose = true | ) |
|
|
inline |
Set verbose mode.
- Parameters
-
verbose | disable I/O if false; else enable |
Definition at line 59 of file JCommunicator.hh.
std::istream& JEEP::JCommunicator::getInputStream |
( |
std::istream & |
in = std::cin | ) |
const |
|
inline |
Get current input stream.
This method returns the given input stream if the verbose option is set, else a streamer that does not read any input.
- Parameters
-
- Returns
- input stream
Definition at line 73 of file JCommunicator.hh.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
static JNullStream null
Null I/O stream.
std::ostream& JEEP::JCommunicator::getOutputStream |
( |
std::ostream & |
out = std::cout | ) |
const |
|
inline |
Get current output stream.
This method returns the given output stream if the verbose option is set, else a streamer that does not write any output.
- Parameters
-
- Returns
- output stream
Definition at line 87 of file JCommunicator.hh.
static JNullStream null
Null I/O stream.
std::ostream& JEEP::JCommunicator::getErrorStream |
( |
std::ostream & |
out = std::cerr | ) |
const |
|
inline |
Get current error stream.
This method returns the given error stream if the verbose option is set, else a streamer that does not write any output.
- Parameters
-
- Returns
- error stream
Definition at line 101 of file JCommunicator.hh.
bool JEEP::JCommunicator::verbose_ |
|
protected |
The documentation for this class was generated from the following file: