|
DCMTK Version 3.7.1
OFFIS DICOM Toolkit
|
Struct encapsulating different extra loggers utilized by DcmSCU. More...
Public Types | |
| enum | E_LOGGER { LOGGER_C_FIND_RQ_DATASET = 0 , LOGGER_C_FIND_RSP_DATASET = 1 , LOGGER_C_STORE_RQ_DATASET = 2 , LOGGER_N_GET_RQ_IDENTIFIER_LIST = 3 , LOGGER_N_GET_RSP_DATASET = 4 , LOGGER_N_ACTION_RQ_ACTION_INFORMATION = 5 , LOGGER_N_ACTION_RSP_ACTION_REPLY = 6 , LOGGER_NUM_LOGGERS = 7 } |
| Enumerate extra loggers utilized by DcmSCU. More... | |
Public Member Functions | |
| TLogger () | |
| Default constructor, initializes logger names and sets defaults for enabled states. | |
| const OFString & | operator[] (const E_LOGGER logger) const |
| [] operator to access logger names by enum value. | |
| OFBool | isEnabled (const E_LOGGER logger) const |
| Check if the given logger is enabled. | |
| void | setEnabled (const E_LOGGER logger, const OFBool enabled) |
| Enable or disable a logger. | |
Protected Attributes | |
| OFBool | m_loggerEnabled [LOGGER_NUM_LOGGERS] |
| Enabled states of the loggers, specific for each DcmSCU instance. | |
Static Protected Attributes | |
| static OFString | m_loggerName [LOGGER_NUM_LOGGERS] |
| Holds extra logger names utilized by DcmSCU. | |
Struct encapsulating different extra loggers utilized by DcmSCU.
Each logger can be enabled or disabled individually. All loggers can also be enabled or disabled at once via the special enum value LOGGER_NUM_LOGGERS.
Enumerate extra loggers utilized by DcmSCU.
| OFBool DcmSCU::TLogger::isEnabled | ( | const E_LOGGER | logger | ) | const |
Check if the given logger is enabled.
If LOGGER_NUM_LOGGERS is given, the function checks if all loggers are enabled and returns OFTrue in this case. If at least one logger is disabled, OFFalse is returned.
| logger | The logger enum value |
[] operator to access logger names by enum value.
| logger | The logger enum value |
| void DcmSCU::TLogger::setEnabled | ( | const E_LOGGER | logger, |
| const OFBool | enabled ) |
Enable or disable a logger.
If LOGGER_NUM_LOGGERS is given, the function enables or disables all loggers at once.
| logger | The logger enum value |
| enabled | OFTrue to enable, OFFalse to disable |
|
staticprotected |