DCMTK Version 3.7.1
OFFIS DICOM Toolkit
Loading...
Searching...
No Matches
DcmSCU::TLogger Struct Reference

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.

Detailed Description

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.

Member Enumeration Documentation

◆ E_LOGGER

Enumerate extra loggers utilized by DcmSCU.

Enumerator
LOGGER_C_FIND_RQ_DATASET 

Logger for C-FIND-RQ dataset, enabled per default.

LOGGER_C_FIND_RSP_DATASET 

Logger for C-FIND-RSP dataset, disabled per default.

LOGGER_C_STORE_RQ_DATASET 

Logger for C-STORE-RQ dataset, disabled per default.

LOGGER_N_GET_RQ_IDENTIFIER_LIST 

Logger for N-GET-RQ attribute identifier list, enabled per default.

LOGGER_N_GET_RSP_DATASET 

Logger for N-GET-RSP attribute list dataset, disabled per default.

LOGGER_N_ACTION_RQ_ACTION_INFORMATION 

Logger for N-ACTION-RQ Action Information, enabled per default.

LOGGER_N_ACTION_RSP_ACTION_REPLY 

Logger for N-ACTION-RSP Action Reply, disabled per default.

LOGGER_NUM_LOGGERS 

Number of loggers; provides number of loggers and can be used a a placeholder to enable/disable all loggers at once.

Member Function Documentation

◆ isEnabled()

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.

Parameters
loggerThe logger enum value
Returns
OFTrue if enabled, OFFalse otherwise

◆ operator[]()

const OFString & DcmSCU::TLogger::operator[] ( const E_LOGGER logger) const

[] operator to access logger names by enum value.

Parameters
loggerThe logger enum value
Returns
The name of the logger as OFString

◆ setEnabled()

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.

Parameters
loggerThe logger enum value
enabledOFTrue to enable, OFFalse to disable

Member Data Documentation

◆ m_loggerName

OFString DcmSCU::TLogger::m_loggerName[LOGGER_NUM_LOGGERS]
staticprotected

Holds extra logger names utilized by DcmSCU.

Static since the logger names used are identical for all instances of DcmSCU.


The documentation for this struct was generated from the following file:


Generated on for DCMTK Version 3.7.1 by Doxygen 1.18.0