DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
this class maintains a table of client processes. More...
Public Member Functions | |
DcmQueryRetrieveProcessTable () | |
default constructor | |
virtual | ~DcmQueryRetrieveProcessTable () |
destructor | |
void | addProcessToTable (int pid, T_ASC_Association *assoc) |
adds a new child process to the process table. More... | |
size_t | countChildProcesses () const |
returns the number of child processes in the table More... | |
void | cleanChildren () |
check if child processes have terminated and, if yes, remove them from the process table. More... | |
OFBool | haveProcessWithWriteAccess (const char *calledAETitle) const |
check if we have a child process that has write access to the given aetitle. More... | |
Private Member Functions | |
void | removeProcessFromTable (int pid) |
remove the process with the given process ID from the table More... | |
Private Attributes | |
OFList < DcmQueryRetrieveProcessSlot * > | table_ |
the list of process entries maintained by this object. | |
this class maintains a table of client processes.
For each client process, certain key parameters such as the peer hostname, AE titles, read/write access are stored along with the process ID.
void DcmQueryRetrieveProcessTable::addProcessToTable | ( | int | pid, |
T_ASC_Association * | assoc | ||
) |
adds a new child process to the process table.
pid | process ID of the child process |
assoc | peer hostname and AEtitles are read from this object |
void DcmQueryRetrieveProcessTable::cleanChildren | ( | ) |
check if child processes have terminated and, if yes, remove them from the process table.
This method should be called regularly.
|
inline |
returns the number of child processes in the table
OFBool DcmQueryRetrieveProcessTable::haveProcessWithWriteAccess | ( | const char * | calledAETitle | ) | const |
check if we have a child process that has write access to the given aetitle.
Used to enforce an ad-hoc rule that allows only one parallel association to negotiate storage presentation contexts for each storage area (aetitle)
|
private |
remove the process with the given process ID from the table
pid | process ID |