DCMTK
Version 3.6.3
OFFIS DICOM Toolkit
|
A class that handles the command line arguments used by applications that support TLS. More...
Public Member Functions | |
DcmTLSOptions (class OFConsoleApplication &app, class OFCommandLine &cmd) | |
Constructor. More... | |
OFCondition | parseArguments () |
Parse and evaluate the given command line arguments. More... | |
OFrvalue< OFvariant< OFCondition, DcmTLSTransportLayer > > | createTransportLayer (int networkRole) |
Create a DcmTLSTransportLayer object based on the collected command line arguments. More... | |
OFCondition | writeRandomSeedFileIfEnabled (DcmTLSTransportLayer &layer) |
Update the random seed file if this was requested by the given command line arguments. More... | |
Static Public Member Functions | |
static void | printLibraryVersion () |
Print OpenSSL library version string. More... | |
A class that handles the command line arguments used by applications that support TLS.
DcmTLSOptions handles storing the relevant options, printing the associated help text an information (e.g. OpenSSL library version), parsing and evaluating the given command line arguments and creating a DcmTLSTransportLayer object based on the collected information.
DcmTLSOptions::DcmTLSOptions | ( | class OFConsoleApplication & | app, |
class OFCommandLine & | cmd | ||
) |
Constructor.
app | a reference to an OFConsoleApplication object used in the calling application. |
cmd | a reference to an OFCommandLine object used to parse the command line argument give to the calling application. |
OFrvalue<OFvariant<OFCondition,DcmTLSTransportLayer> > DcmTLSOptions::createTransportLayer | ( | int | networkRole | ) |
Create a DcmTLSTransportLayer object based on the collected command line arguments.
networkRole | the network role to create a transport layer for, DICOM_APPLICATION_ACCEPTOR or DICOM_APPLICATION_REQUESTOR. |
OFCondition DcmTLSOptions::parseArguments | ( | ) |
Parse and evaluate the given command line arguments.
|
static |
Print OpenSSL library version string.
Does nothing if OpenSSL is not available.
OFCondition DcmTLSOptions::writeRandomSeedFileIfEnabled | ( | DcmTLSTransportLayer & | layer | ) |
Update the random seed file if this was requested by the given command line arguments.
layer | a reference to a DcmTLSTransportLayer object that contains the information for updating the random seed file, e.g. created via createTransportLayer(). |