34 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/ofstd/ofstring.h"
36 #include "dcmtk/dcmdata/dctypes.h"
37 #include "dcmtk/dcmpstat/dvpstyp.h"
38 #include "dcmtk/oflog/oflog.h"
78 const char *
getTargetID(Uint32 idx, DVPSPeerType peerType=DVPSE_storage);
1082 const char *
getConfigEntry(
const char *l2_key,
const char *l1_key,
const char *l0_key);
1091 OFBool
getConfigBoolEntry(
const char *l2_key,
const char *l1_key,
const char *l0_key, OFBool deflt);
const char * getUserCodeValue(const char *userID, OFString &value)
returns the code value of the user code for the given user if present.
Uint32 getTargetPrinterNumberOfPrinterResolutionIDs(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the RESOLUTIONID entry f...
double getMonitorPixelWidth()
returns the width (in mm) of one pixel on the current monitor
const char * getTargetPrinterMediumType(const char *targetID, Uint32 idx, OFString &value)
returns one value from the MEDIUMTYPE entry for the printer with the given target ID from the configu...
const char * getLUTDescription(const char *lutID)
returns the DESCRIPTION entry for the LUT with the given ID from the configuration file...
double getVOIPresetWindowCenter(const char *modality, Uint32 idx)
returns the window center for the given VOI Preset
OFBool getMessagePortKeepOpen()
Indicates whether client processes are allowed to keep their notification message port open during th...
Sint32 getQueryRetrieveTimeout()
returns the TIMEOUT entry for the the Q/R server from the section GENERAL/QUERY_RETRIEVE in the confi...
unsigned short getMessagePort()
returns the port on which the GUI application accepts notification messages from the network processe...
OFBool getConfigBoolEntry(const char *l2_key, const char *l1_key, const char *l0_key, OFBool deflt)
returns the entry with the given keys as bool.
Uint32 getMaxPrintResolutionY()
returns the maximum vertical bitmap resolution for print, from GENERAL/PRINT/MAXPRINTRESOLUTION in th...
const char * getReportID(Uint32 idx)
returns the identifier of the SR "template" with the given index.
const char * getTargetHostname(const char *targetID)
returns the HOSTNAME entry for the communication partner with the given target ID from the configurat...
Uint32 getNumberOfLUTs()
returns the number of Presentation LUTs in the configuration file.
const char * getNetworkAETitle()
returns the AETitle with which this application should identify itself.
unsigned long getTargetMaxPDU(const char *targetID)
returns the MAXPDU entry for the communication partner with the given target ID from the configuratio...
OFBool getTargetPrinterSessionLabelAnnotation(const char *targetID)
returns OFTrue if an SESSIONLABELANNOTATION entry for the printer with the given target ID from the c...
Uint32 getTargetPrinterNumberOfBorderDensities(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the BORDERDENSITY entry ...
Uint32 getMinPrintResolutionX()
returns the minimum horizontal bitmap resolution for print, from GENERAL/PRINT/MINPRINTRESOLUTION in ...
OFBool getGUIConfigEntryBool(const char *key, OFBool dfl)
returns the value of configuration file entry key=value in the section GENERAL/GUI of the config file...
Uint32 getTargetNumberOfCipherSuites(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the CIPHERSUITES entry f...
const char * getReceiverName()
returns the filename (path) of the DICOM Store SCP application used for receiving images...
Uint32 getTargetPrinterPortraitDisplayFormatColumns(const char *targetID, Uint32 idx)
returns one columns value from the DISPLAYFORMAT entry for the printer with the given target ID from ...
const char * getTargetAETitle(const char *targetID)
returns the AETITLE entry for the communication partner with the given target ID from the configurati...
unsigned short getTargetPort(const char *targetID)
returns the PORT entry for the communication partner with the given target ID from the configuration ...
LogLevel
these are the log levels that you can feed to isEnabledFor()
const char * getLUTFilename(const char *lutID)
returns the FILENAME entry for the LUT with the given ID from the configuration file.
OFBool getTLSPEMFormat()
returns the file format used for certificates, keys and Diffie-Hellman parameters.
const char * getDatabaseFolder()
returns the database folder to be used for sending/receiving/browsing.
const char * getTargetPrinterEmptyImageDensity(const char *targetID, Uint32 idx, OFString &value)
returns one value from the EMPTYIMAGEDENSITY entry for the printer with the given target ID from the ...
const char * getSpoolerName()
returns the filename (path) of the DICOM Print SCU application used for printing images, as configured in section GENERAL/PRINT/SPOOLER in the config file.
const char * getTargetPrinterFilmDestination(const char *targetID, Uint32 idx, OFString &value)
returns one value from the FILMDESTINATION entry for the printer with the given target ID from the co...
OFBool getTargetDisableNewVRs(const char *targetID)
returns the DISABLENEWVRS entry for the communication partner with the given target ID from the confi...
DVConfiguration & operator=(const DVConfiguration &)
private undefined assignment operator
DVPSPeerType getTargetType(const char *targetID)
returns the TYPE entry for the communication partner with the given target ID from the configuration ...
unsigned long getQueryRetrieveMaxPDU()
returns the MAXPDU entry for the Q/R server from the section GENERAL/QUERY_RETRIEVE in the config fil...
const char * getConfigEntry(const char *l2_key, const char *l1_key, const char *l0_key)
returns the entry with the given keys.
Uint32 getTargetPrinterNumberOfEmptyImageDensities(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the EMPTYIMAGEDENSITY en...
const char * getPrintServerName()
returns the filename (path) of the DICOM Print SCU application used for printing images, as configured in section GENERAL/PRINT/Server in the config file.
const char * getGUIConfigEntry(const char *key)
returns the value of configuration file entry key=value in the section GENERAL/GUI of the config file...
const char * getLogFolder()
returns the directory used to store log files.
OFBool getTargetPrintSCPOmitSOPClassUIDFromCreateResponse(const char *targetID)
returns the OMITSOPCLASSUIDFROMCREATERESPONSE entry for the printer with the given target ID from the...
Uint16 getTargetPrinterAnnotationPosition(const char *targetID)
returns the first value from the ANNOTATION entry for the printer with the given target ID from the c...
Configuration class for the Softcopy Presentation State viewer.
Uint32 getTargetPrinterNumberOfMagnificationTypes(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the MAGNIFICATIONTYPE en...
OFBool getSpoolerDeletePrintJobs()
returns the DELETEPRINTJOBS entry for the print spooler from the section GENERAL/PRINT in the config ...
const char * getTargetPrinterMinDensity(const char *targetID, Uint32 idx, OFString &value)
returns one value from the MINDENSITY entry for the printer with the given target ID from the configu...
const char * getReportFolder()
returns the folder to be used for Structured Reporting "templates".
const char * getTargetPrinterBorderDensity(const char *targetID, Uint32 idx, OFString &value)
returns one value from the BORDERDENSITY entry for the printer with the given target ID from the conf...
const char * getTLSFolder()
returns the directory in which TLS related files (certificates, keys, random data, Diffie-Hellman parameters etc.) are located.
OFBool getBinaryLog()
returns the BINARYLOG entry from the section GENERAL/PRINT in the config file.
double getMonitorPixelHeight()
returns the height (in mm) of one pixel on the current monitor
OFBool getTargetPrinterSupportsPresentationLUT(const char *targetID)
returns the SUPPORTSPRESENTATIONLUT entry for the printer with the given target ID from the configura...
Uint32 getMinPrintResolutionY()
returns the minimum vertical bitmap resolution for print, from GENERAL/PRINT/MINPRINTRESOLUTION in th...
const char * getReportDescription(const char *reportID)
returns the DESCRIPTION entry for the SR "template" with the given ID from the configuration file...
const char * getTLSCACertificateFolder()
returns the directory in which certificates of the trusted Certification Authorities are located...
const char * getTargetPrivateKeyPassword(const char *targetID)
returns the PRIVATEKEYPASSWORD entry for the storage peer with the given target ID from the configura...
OFBool getTargetPrinterSupportsAnnotationBoxSOPClass(const char *targetID)
returns OFTrue if an ANNOTATION entry for the printer with the given target ID from the configuration...
unsigned short getQueryRetrievePort()
returns the PORT entry for the Q/R server from the section GENERAL/QUERY_RETRIEVE in the config file...
const char * getTargetPrinterSmoothingType(const char *targetID, Uint32 idx, OFString &value)
returns one value from the SMOOTHINGTYPE entry for the printer with the given target ID from the conf...
OFBool getTargetPrinterSupportsDecimateCrop(const char *targetID)
returns the SUPPORTSDECIMATECROP entry for the printer with the given target ID from the configuratio...
Uint32 getTargetPrinterNumberOfFilmSizeIDs(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the FILMSIZEID entry for...
OFBool getTargetPrinterSupportsTrim(const char *targetID)
returns the SUPPORTSTRIM entry for the printer with the given target ID from the configuration file...
Uint32 getTargetPrinterNumberOfMinDensities(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the MINDENSITY entry for...
Uint32 getMaxPreviewResolutionX()
returns the maximum horizontal preview image resolution, from GENERAL/MONITOR/PREVIEW in the config f...
OFBool getTargetPrinterPresentationLUTMatchRequired(const char *targetID)
returns the PRESENTATIONLUTMATCHREQUIRED entry for the printer with the given target ID from the conf...
Uint32 getMaxPrintResolutionX()
returns the maximum horizontal bitmap resolution for print, from GENERAL/PRINT/MAXPRINTRESOLUTION in ...
const char * getTargetPrinterResolutionID(const char *targetID, Uint32 idx, OFString &value)
returns one value from the RESOLUTIONID entry for the printer with the given target ID from the confi...
const char * getUserLogin(const char *userID)
returns the login for the given user.
const char * getTargetID(Uint32 idx, DVPSPeerType peerType=DVPSE_storage)
returns the target identifier of the communication partner with the given index.
unsigned long getSpoolerSleep()
returns the sleep delay for the print spooler in seconds, as configured in section GENERAL/PRINT/SLEE...
OFBool getTargetUseTLS(const char *targetID)
returns the USETLS entry for the storage peer with the given target ID from the configuration file...
class for reading and evaluating configuration files.
Uint32 getTargetPrinterNumberOfMediumTypes(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the MEDIUMTYPE entry for...
virtual ~DVConfiguration()
destructor.
const char * getTargetDiffieHellmanParameters(const char *targetID)
returns the DIFFIEHELLMANPARAMETERS entry for the storage peer with the given target ID from the conf...
const char * getUserCodeMeaning(const char *userID, OFString &value)
returns the code meaning of the user code for the given user if present.
const char * getCheckToolName()
returns the filename (path) of the application used for dumping DICOM objects, as configured in secti...
const char * getTargetCipherSuite(const char *targetID, Uint32 idx, OFString &value)
returns one value from the CIPHERSUITES entry for the storage peer with the given target ID from the ...
const char * getUserOrganization(const char *userID)
returns the organization for the given user.
const char * getUserCodingSchemeDesignator(const char *userID, OFString &value)
returns the coding scheme designator of the user code for the given user if present.
const char * getTargetPrinterMagnificationType(const char *targetID, Uint32 idx, OFString &value)
returns one value from the MAGNIFICATIONTYPE entry for the printer with the given target ID from the ...
const char * getQueryRetrieveServerName()
returns the filename (path) of the DICOM Query/Retrieve SCP application, as configured in section GEN...
OFBool getTargetPrinterPresentationLUTPreferSCPRendering(const char *targetID)
returns the PRESENTATIONLUTPREFERSCPRENDERING entry for the printer with the given target ID from the...
Uint32 getTargetPrinterNumberOfMaxDensities(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the MAXDENSITY entry for...
OFBool getSpoolerAlwaysDeleteTerminateJobs()
returns the ALWAYSDELETETERMINATEJOBS entry for the print spooler from the section GENERAL/PRINT in t...
const char * getTargetCertificate(const char *targetID)
returns the CERTIFICATE entry for the storage peer with the given target ID from the configuration fi...
Uint16 getDefaultPrintReflection()
returns the default reflection for print, from GENERAL/PRINT/DEFAULTREFLECTION in the config file...
Uint32 getNumberOfUsers()
returns the number of configured users in the USERS section.
const char * getTargetPrinterAnnotationDisplayFormatID(const char *targetID, OFString &value)
returns the second value from the ANNOTATION entry for the printer with the given target ID from the ...
const char * getQueryRetrieveAETitle()
returns the AETitle with which the Q/R server should identify itself.
Sint32 getTargetTimeout(const char *targetID)
returns the TIMEOUT entry for the communication partner with the given target ID from the configurati...
const char * getSenderName()
returns the filename (path) of the DICOM Store SCU application used for sending images, as configured in section GENERAL/NETWORK/SENDER in the config file.
Uint16 getDefaultPrintIllumination()
returns the default illumination for print, from GENERAL/PRINT/DEFAULTILLUMINATION in the config file...
OFBool getTargetCorrectUIDPadding(const char *targetID)
returns the CORRECTUIDPADDING entry for the storage peer with the given target ID from the configurat...
OFBool getTargetImplicitOnly(const char *targetID)
returns the IMPLICITONLY entry for the communication partner with the given target ID from the config...
const char * getMonitorCharacteristicsFile()
returns the filename (path) of the monitor characteristics file used to implement that Barten transfo...
Uint32 getTargetPrinterNumberOfConfigurationSettings(const char *targetID)
returns the number of distinct values in the CONFIGURATION_x entries for the printer with the given t...
OFBool getTargetPrinterSupportsRequestedImageSize(const char *targetID)
returns the SUPPORTSIMAGESIZE entry for the printer with the given target ID from the configuration f...
const char * getTargetPrinterFilmSizeID(const char *targetID, Uint32 idx, OFString &value)
returns one value from the FILMSIZEID entry for the printer with the given target ID from the configu...
const char * getLUTFolder()
returns the folder to be used for Print Presentation LUTs.
OFBool getTargetPrinterPresentationLUTinFilmSession(const char *targetID)
returns the PRESENTATIONLUTINFILMSESSION entry for the printer with the given target ID from the conf...
const char * getTargetPrivateKey(const char *targetID)
returns the PRIVATEKEY entry for the storage peer with the given target ID from the configuration fil...
Uint32 getNumberOfTargets(DVPSPeerType peerType=DVPSE_storage)
returns the number of communication partners (send targets) in the configuration file.
const char * getLUTID(Uint32 idx)
returns the identifier of the Presentation LUT with the given index.
Uint32 getTargetPrinterPortraitDisplayFormatRows(const char *targetID, Uint32 idx)
returns one row value from the DISPLAYFORMAT entry for the printer with the given target ID from the ...
OFBool getDetailedLog()
returns the DETAILEDLOG entry from the section GENERAL/PRINT in the config file.
unsigned long getQueryRetrieveMaxAssociations()
returns the MaxAssociations entry for the Q/R server from the section GENERAL/QUERY_RETRIEVE in the c...
const char * getSpoolFolder()
returns the spool folder to be used for print jobs.
Uint32 getTargetPrinterNumberOfSmoothingTypes(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the SMOOTHINGTYPE entry ...
const char * getUserID(Uint32 idx)
returns the symbolic identifier of the user with the given index.
const char * getTargetRandomSeed(const char *targetID)
returns the RANDOMSEED entry for the storage peer with the given target ID from the configuration fil...
const char * getUserPrivateKey(const char *userID)
returns the private key file name for the given user.
const char * getUserDICOMName(const char *userID)
returns the name for the given user in DICOM Person Name (PN) format.
const char * getUserName(const char *userID)
returns the human readable name for the given user.
const char * getTargetPrinterMaxDensity(const char *targetID, Uint32 idx, OFString &value)
returns one value from the MAXDENSITY entry for the printer with the given target ID from the configu...
OFConfigFile * pConfig
pointer to the configuration file data if the configuration file was found.
const char * getReportFilename(const char *reportID)
returns the FILENAME entry for the SR "template" with the given ID from the configuration file...
Uint32 getNumberOfReports()
returns the number of SR "templates" in the configuration file.
const char * getTargetDescription(const char *targetID)
returns the DESCRIPTION entry for the communication partner with the given target ID from the configu...
const char * getVOIPresetDescription(const char *modality, Uint32 idx)
returns the description string for the given VOI Preset
DVConfiguration(const char *config_file=NULL)
constructor.
OFBool getTargetPrinterSupports12BitTransmission(const char *targetID)
returns the SUPPORTS12BIT entry for the printer with the given target ID from the configuration file...
a simple string class that implements a subset of std::string.
const char * getDumpToolName()
returns the filename (path) of the application used for dumping DICOM objects, as configured in secti...
double getVOIPresetWindowWidth(const char *modality, Uint32 idx)
returns the window width for the given VOI Preset
const char * getUserCodingSchemeVersion(const char *userID, OFString &value)
returns the coding scheme version of the user code for the given user if present. ...
Uint32 getTargetPrinterNumberOfFilmDestinations(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the FILMDESTINATION entr...
Uint32 getNumberOfVOIPresets(const char *modality)
returns the number of VOI Presets defined for the given modality
Uint32 getTargetPrinterNumberOfPortraitDisplayFormats(const char *targetID)
returns the number of distinct values (separated by backslash characters) in the DISPLAYFORMAT entry ...
const char * getUserCertificate(const char *userID)
returns the certificate file name for the given user.
OFBool getTargetBitPreservingMode(const char *targetID)
returns the BITPRESERVINGMODE entry for the storage peer with the given target ID from the configurat...
const char * getLogFile()
returns the name of the log file to be used for general application messages.
OFLogger::LogLevel getLogLevel()
returns the log level / filter to be used for general application messages.
DVPSCertificateVerificationType getTargetPeerAuthentication(const char *targetID)
returns the PEERAUTHENTICATION entry for the communication partner with the given target ID from the ...
OFBool getQueryRetrieveAutoCreateConfigFile()
returns the AUTOCREATECONFIGFILE entry for the query/retrieve server from the section GENERAL/QUERY_R...
Uint32 getMaxPreviewResolutionY()
returns the maximum vertical preview image resolution, from GENERAL/MONITOR/PREVIEW in the config fil...
OFBool getTargetPrinterSupportsAnnotation(const char *targetID)
returns OFTrue if an ANNOTATION entry for the printer with the given target ID from the configuration...
const char * getUserCertificateFolder()
returns the directory in which user certificates and keys are located.
const char * getTargetPrinterConfigurationSetting(const char *targetID, Uint32 idx)
returns the value from one of the CONFIGURATION_x entries for the printer with the given target ID fr...