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.
◆ JCommunicator() [1/2]
JEEP::JCommunicator::JCommunicator |
( |
| ) |
|
|
inline |
◆ JCommunicator() [2/2]
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.
◆ getVerbose()
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.
◆ setVerbose()
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.
◆ getInputStream()
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.
static JNullStream null
Null I/O stream.
◆ getOutputStream()
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.
◆ getErrorStream()
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.
◆ verbose_
bool JEEP::JCommunicator::verbose_ |
|
protected |
The documentation for this class was generated from the following file: