30 #ifndef WlmActivityManager_h
31 #define WlmActivityManager_h
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/ofcmdln.h"
35 #include "dcmtk/dcmdata/dcxfer.h"
36 #include "dcmtk/dcmnet/dimse.h"
37 #include "dcmtk/dcmwlm/wltypdef.h"
197 OFCmdUnsignedInt opt_portv,
198 OFBool opt_refuseAssociationv,
199 OFBool opt_rejectWithoutImplementationUIDv,
200 OFCmdUnsignedInt opt_sleepAfterFindv,
201 OFCmdUnsignedInt opt_sleepDuringFindv,
202 OFCmdUnsignedInt opt_maxPDUv,
203 E_TransferSyntax opt_networkTransferSyntaxv,
204 OFBool opt_failInvalidQueryv,
205 OFBool opt_singleProcessv,
206 int opt_maxAssociationsv,
207 T_DIMSE_BlockingMode opt_blockModev,
208 int opt_dimse_timeoutv,
209 int opt_acse_timeoutv,
212 char *argvv[] = NULL );
void RemoveProcessFromTable(int pid)
This function removes one particular item from the table which stores all subprocess information...
This class encapsulates data structures and operations for basic worklist management service class pr...
OFBool opt_singleProcess
indicates if the application is run in single process mode or not
WlmActivityManager & operator=(const WlmActivityManager &Src)
Protected undefined operator=.
This class encapsulates data structures and operations for connecting to an arbitrary data source in ...
WlmActivityManager(const WlmActivityManager &Src)
Protected undefined copy-constructor.
int opt_dimse_timeout
timeout for DIMSE operations
OFList< WlmProcessSlotType * > processTable
table of processes for non-single process mode
OFBool opt_forkedChild
indicates, that this process was spawn as child from a parent process needed for multiprocess mode on...
void AddProcessToTable(int pid, T_ASC_Association *assoc)
This function adds a process to the table that stores process information.
T_DIMSE_BlockingMode opt_blockMode
blocking mode for DIMSE operations
OFBool opt_rejectWithoutImplementationUID
indicates if the application shall reject associations without implementation class uids ...
OFCmdUnsignedInt opt_sleepDuringFind
indicates how long the application shall sleep during a find
int numberOfSupportedAbstractSyntaxes
number of array fields
OFBool opt_refuseAssociation
indicates if the application shall refuse any association
E_TransferSyntax opt_networkTransferSyntax
preferred network transfer syntax
OFCondition NegotiateAssociation(T_ASC_Association *assoc)
This function negotiates a presentation context which will be used by this application and the other ...
int cmd_argc
number of arguments in commandline, needed for multiprocess mode on WIN32
void CleanChildren()
This function takes care of removing items referring to (terminated) subprocess from the table which ...
OFCondition WaitForAssociation(T_ASC_Network *net)
This function takes care of receiving, negotiating and accepting/refusing an association request...
OFCmdUnsignedInt opt_sleepAfterFind
indicates how long the application shall sleep after a find
OFCondition HandleEchoSCP(T_ASC_Association *assoc, T_DIMSE_C_EchoRQ *req, T_ASC_PresentationContextID presId)
Having received a DIMSE C-ECHO-RQ message, this function takes care of sending a DIMSE C-ECHO-RSP mes...
OFCondition HandleFindSCP(T_ASC_Association *assoc, T_DIMSE_C_FindRQ *request, T_ASC_PresentationContextID presID)
This function processes a DIMSE C-FIND-RQ commmand that was received over the network connection...
int opt_acse_timeout
timeout for ACSE operations
int opt_maxAssociations
maximum number of association for non-single process mode
OFCmdUnsignedInt opt_maxPDU
max pdu size
void RefuseAssociation(T_ASC_Association **assoc, WlmRefuseReasonType reason)
This function takes care of refusing an assocation request.
OFBool opt_failInvalidQuery
indicates if the application shall fail on an invalid C-Find RQ message
OFCondition StartProvidingService()
Starts providing the implemented service for calling SCUs.
Singleton class which provides thread-safe access to the standard console output and error streams...
~WlmActivityManager()
destructor
char ** supportedAbstractSyntaxes
array of supported abstract syntaxes
OFCondition ReceiveAndHandleCommands(T_ASC_Association *assoc)
This function takes care of handling the other DICOM application's request.
OFCmdUnsignedInt opt_port
port on which the application is listening
General purpose class for condition codes.
WlmDataSource * dataSource
data source connection object
char ** cmd_argv
complete command line, needed for multiprocess mode on WIN32
void HandleAssociation(T_ASC_Association *assoc)
This function takes care of handling the other DICOM application's request.