DIMSE classes

The DIMSE classes (DICOM Service) take care of transmitting and receiving DICOM commands through a DICOM association (a imebra::AssociationBase derived class).

The main DIMSE class is imebra::DimseService, through which all the DICOM commands and responses are sent and received.

DimseService

class imebra::DimseService

Sends and receives DICOM commands and responses through a AssociationSCU or an AssociationSCP.

The DimseService supplies getNextCommandID() in order to obtain the ID for the commands sent through the DimseService object.

Parameters
  • association: the AssociationBase derived class through which the DICOM commands and responses are sent and received

Public Functions

imebra::DimseServiceDimseService(AssociationBase &association)

Constructor.

Parameters
  • association: the AssociationBase derived class through which the DICOM commands and responses are sent and received

std::string imebra::DimseServicegetTransferSyntax(const std::string &abstractSyntax) const

Returns the negotiated transfer syntax for a specific abstract syntax.

This method is multithread safe.

Return
the negotiated transfer syntax for the specified abstract syntax
Parameters
  • abstractSyntax: the abstract syntax for which the transfer syntax is needed

std::uint16_t imebra::DimseServicegetNextCommandID()

Retrieves an ID that can be used on the next command sent through this DimseService object.

This method is multithread safe.

Return
an ID that can be used as command ID on a command sent through this DimseService object

DimseCommand *imebra::DimseServicegetCommand()

Retrieves the next incoming DICOM command.

The command blocks until the command is available or until the association is closed, either by the connected peer or by other means (e.g because of the DIMSE timeout), in which case the exception StreamEOFError is thrown.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

This method can be called by several threads at once: each thread will receive a DIMSE command and can reply to the command via sendCommandOrResponse().

The underlying AssociationBase object will take care of limiting the number of incoming command according to the maximum number of performed operation negotiated for the association.

Throws StreamEOFError if the association is closed while the method is waiting for an incoming command.

Return
the next incoming DICOM command

void imebra::DimseServicesendCommandOrResponse(const DimseCommandBase &command)

Sends a DICOM command or response through the association.

This method is multithread safe.

Parameters
  • command: the command or response to send

CStoreResponse *imebra::DimseServicegetCStoreResponse(const CStoreCommand &command)

Wait for the response for the specified C-STORE command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent C-CSTORE command for which to wait for a response

CGetResponse *imebra::DimseServicegetCGetResponse(const CGetCommand &command)

Wait for the response for the specified C-GET command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent C-GET command for which to wait for a response

CFindResponse *imebra::DimseServicegetCFindResponse(const CFindCommand &command)

Wait for the response for the specified C-FIND command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent C-FIND command for which to wait for a response

CMoveResponse *imebra::DimseServicegetCMoveResponse(const CMoveCommand &command)

Wait for the response for the specified C-MOVE command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent C-MOVE command for which to wait for a response

CEchoResponse *imebra::DimseServicegetCEchoResponse(const CEchoCommand &command)

Wait for the response for the specified C-ECHO command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent C-ECHO command for which to wait for a response

NEventReportResponse *imebra::DimseServicegetNEventReportResponse(const NEventReportCommand &command)

Wait for the response for the specified N-EVENT-REPORT command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-EVENT-REPORT command for which to wait for a response

NGetResponse *imebra::DimseServicegetNGetResponse(const NGetCommand &command)

Wait for the response for the specified N-GET command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-GET command for which to wait for a response

NSetResponse *imebra::DimseServicegetNSetResponse(const NSetCommand &command)

Wait for the response for the specified N-SET command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-SET command for which to wait for a response

NActionResponse *imebra::DimseServicegetNActionResponse(const NActionCommand &command)

Wait for the response for the specified N-ACTION command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-ACTION command for which to wait for a response

NCreateResponse *imebra::DimseServicegetNCreateResponse(const NCreateCommand &command)

Wait for the response for the specified N-CREATE command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-CREATE command for which to wait for a response

NDeleteResponse *imebra::DimseServicegetNDeleteResponse(const NDeleteCommand &command)

Wait for the response for the specified N-DELETE command and returns it.

Other threads can wait for other commands or responses from the same DIMSE service. All the commands and responses are received by a secondary thread and distributed to all the listener waiting for a command or a response.

Return
the response for the specified command
Parameters
  • command: the sent N-DELETE command for which to wait for a response

DimseCommandBase

class imebra::DimseCommandBase

Base class for the DICOM commands and responses.

Subclassed by imebra::DimseCommand, imebra::DimseResponse

Public Functions

std::string imebra::DimseCommandBasegetAffectedSopInstanceUid() const

Returns the affected SOP instance UID.

Return
the affected SOP instance UID

std::string imebra::DimseCommandBasegetAffectedSopClassUid() const

Returns the affected SOP Class UID.

Return
the affected SOP Class UID

std::string imebra::DimseCommandBasegetRequestedSopInstanceUid() const

Returns the requested SOP instance UID.

Return
requested SOP instance UID

std::string imebra::DimseCommandBasegetRequestedSopClassUid() const

Returns the requested SOP class UID.

Return
requested SOP class UID

DimseCommand

class imebra::DimseCommand

Base class for the DICOM commands.

Inherits from imebra::DimseCommandBase

Subclassed by imebra::CCancelCommand, imebra::CEchoCommand, imebra::CFindCommand, imebra::CGetCommand, imebra::CMoveCommand, imebra::CStoreCommand, imebra::NActionCommand, imebra::NCreateCommand, imebra::NDeleteCommand, imebra::NEventReportCommand, imebra::NGetCommand, imebra::NSetCommand

Public Functions

std::uint16_t imebra::DimseCommandgetID() const

Returns the command ID.

Return
the command ID

dimseCommandType_t imebra::DimseCommandgetCommandType() const

Returns the command type.

Return
the command type

CPartialResponse

class imebra::CPartialResponse

Base class for all the partial responses (responses to C-GET, C-MOVE and C-FIND).

Inherits from imebra::DimseResponse

Subclassed by imebra::CGetResponse, imebra::CMoveResponse

Public Functions

std::uint32_t imebra::CPartialResponsegetRemainingSubOperations() const

Returns the number of remaining C-STORE sub operations.

Return
number of remaining C-STORE sub operations

std::uint32_t imebra::CPartialResponsegetCompletedSubOperations() const

Returns the number of completed C-STORE sub operations.

Return
number of completed C-STORE sub operations

std::uint32_t imebra::CPartialResponsegetFailedSubOperations() const

Returns the number of failed C-STORE sub operations.

Return
number of failed C-STORE sub operations

std::uint32_t imebra::CPartialResponsegetWarningSubOperations() const

Returns the number of C-STORE sub operations completed with warnings.

Return
number of C-STORE sub operations completed with warnings

CStoreCommand

class imebra::CStoreCommand

Represents a C-STORE request.

Inherits from imebra::DimseCommand

Public Functions

imebra::CStoreCommandCStoreCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid, const std::string &affectedSopInstanceUid, const std::string &originatorAET, std::uint16_t originatorMessageID, const DataSet &payload)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • priority: message priority
  • affectedSopClassUid: affected SOP instance UID
  • affectedSopInstanceUid: affected SOP instance UID
  • originatorAET: originator AET (issuer of the C-MOVE or C-GET command)
  • originatorMessageID: message ID of the C-MOVE or C-GET that triggered the C-STORE
  • payload: C-STORE payload

std::string imebra::CStoreCommandgetOriginatorAET() const

Returns the AET of the entity that triggered this C-STORE request either via a C-MOVE or a C-GET request.

Return
the AET for the entity that triggered this C-STORE request via a C-MOVE or a C-GET request. Can be empty.

std::uint16_t imebra::CStoreCommandgetOriginatorMessageID() const

Returns the message ID of the C-MOVE or C-GET request that triggered this C-STORE request.

Return
the message ID of the C-MOVE or C-GET request that triggered this C-STORE request. It is zero if it wasn’t set

CStoreResponse

class imebra::CStoreResponse

Represents a C-STORE response.

Inherits from imebra::DimseResponse

Public Functions

imebra::CStoreResponseCStoreResponse(const CStoreCommand &command, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • command: the C-STORE command for which this response is being constructed
  • responseCode: the response code.

CGetCommand

class imebra::CGetCommand

Represents a C-GET command.

C-GET triggers a C-STORE command that is issued through the same association used for the C-GET, therefore the SCU must have negotiated the SCP role for the abstract syntax (see PresentationContexts and AssociationSCU).

Inherits from imebra::DimseCommand

Public Functions

imebra::CGetCommandCGetCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid, const DataSet &identifier)

Constructor.

Parameters

CGetResponse

class imebra::CGetResponse

Represents a C-GET response.

Inherits from imebra::CPartialResponse

Public Functions

imebra::CGetResponseCGetResponse(const CGetCommand &receivedCommand, dimseStatusCode_t responseCode, std::uint32_t remainingSubOperations, std::uint32_t completedSubOperations, std::uint32_t failedSubOperations, std::uint32_t warningSubOperations, const DataSet &identifier)

Constructor to use when failed C-STORE operations are present.

This constructor should be used when the response code identifies a canceled operation, a failure, a refused operation or a warning.

Parameters
  • receivedCommand: the C-GET command for which this response is being constructed
  • responseCode: the response code.
  • remainingSubOperations: number of remaining C-STORE operations
  • completedSubOperations: number of completed C-STORE operations
  • failedSubOperations: number of failed C-STORE operations
  • warningSubOperations: number of C-STORE operations completed with warnings
  • identifier: DataSet with the list of failed instance UIDs in the tag FailedSOPInstanceUIDList (0008,0058)

imebra::CGetResponseCGetResponse(const CGetCommand &receivedCommand, dimseStatusCode_t responseCode, std::uint32_t remainingSubOperations, std::uint32_t completedSubOperations, std::uint32_t failedSubOperations, std::uint32_t warningSubOperations)

Constructor to use when all the C-STORE operations succeeded.

Parameters
  • receivedCommand: the C-GET command for which this response is being constructed
  • responseCode: the response code.
  • remainingSubOperations: number of remaining C-STORE operations
  • completedSubOperations: number of completed C-STORE operations
  • failedSubOperations: number of failed C-STORE operations
  • warningSubOperations: number of C-STORE operations completed with warnings

CFindCommand

class imebra::CFindCommand

Represents a C-FIND command.

Inherits from imebra::DimseCommand

Public Functions

imebra::CFindCommandCFindCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid, const DataSet &identifier)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • priority: the message priority
  • affectedSopClassUid: the affected SOP class UID
  • identifier: the dataset with the identifier (list of tags to match and their requested values)

CFindResponse

class imebra::CFindResponse

Represents a C-FIND response.

Inherits from imebra::DimseResponse

Public Functions

imebra::CFindResponseCFindResponse(const CFindCommand &receivedCommand, const DataSet &identifier)

Constructor for responses with pending status.

Responses with pending status carry a DataSet with a single item from the C-FIND query results.

Parameters
  • receivedCommand: command for which the reponse is being constructed
  • identifier: one item from the C-FIND query results

imebra::CFindResponseCFindResponse(const CFindCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor for final C-FIND response (success or failure).

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: response code

CMoveCommand

class imebra::CMoveCommand

Represents a C-MOVE command.

Inherits from imebra::DimseCommand

Public Functions

imebra::CMoveCommandCMoveCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid, const DataSet &identifier)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • priority: the message priority
  • affectedSopClassUid: affected SOP class UID
  • identifier: the dataset with the identifier (list of tags to match and their requested values)

CMoveResponse

class imebra::CMoveCommand

Represents a C-MOVE command.

Inherits from imebra::DimseCommand

Public Functions

imebra::CMoveCommandCMoveCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid, const DataSet &identifier)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • priority: the message priority
  • affectedSopClassUid: affected SOP class UID
  • identifier: the dataset with the identifier (list of tags to match and their requested values)

CEchoCommand

class imebra::CEchoCommand

Represents a C-ECHO command.

Inherits from imebra::DimseCommand

Public Functions

imebra::CEchoCommandCEchoCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, const std::string &affectedSopClassUid)

Constructor.

Parameters

CEchoResponse

class imebra::CEchoResponse

Represents a C-ECHO response.

Inherits from imebra::DimseResponse

Public Functions

imebra::CEchoResponseCEchoResponse(const CEchoCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: the response code

CCancelCommand

class imebra::CCancelCommand

Represents the C-CANCEL command.

Inherits from imebra::DimseCommand

Public Functions

imebra::CCancelCommandCCancelCommand(const std::string &abstractSyntax, std::uint16_t messageID, dimseCommandPriority_t priority, std::uint16_t cancelMessageID)

Constructor.

Parameters

std::uint16_t imebra::CCancelCommandgetCancelMessageID() const

Returns the ID of the message to cancel.

Return
the ID of the message to cancel

NEventReportCommand

class imebra::NEventReportCommand

Represents a N-EVENT-REPORT command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NEventReportCommandNEventReportCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &affectedSopClassUid, const std::string &affectedSopInstanceUid, std::uint16_t eventID)

Constructor.

Parameters

imebra::NEventReportCommandNEventReportCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &affectedSopClassUid, const std::string &affectedSopInstanceUid, std::uint16_t eventID, const DataSet &eventInformation)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • affectedSopClassUid: the affected SOP class UID
  • affectedSopInstanceUid: the affected SOP instance UID
  • eventID: the event ID
  • pEventInformation: the dataset with event information

std::uint16_t imebra::NEventReportCommandgetEventID() const

Returns the event ID.

Return
the event ID

NEventReportResponse

class imebra::NEventReportResponse

N-EVENT-REPORT response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NEventReportResponseNEventReportResponse(const NEventReportCommand &receivedCommand, const DataSet &eventReply)

Constructor which includes a payload. This implies a successful operation.

Parameters
  • receivedCommand: the N-EVENT request command for which the response is being constructed
  • eventReply: the response payload

imebra::NEventReportResponseNEventReportResponse(const NEventReportCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: the N-EVENT request command for which the response is being constructed
  • responseCode: the response code

std::uint16_t imebra::NEventReportResponsegetEventID() const

Get the event ID. The response may omit this information.

Return
the event ID

NSetCommand

class imebra::NSetCommand

Represents the N-SET command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NSetCommandNSetCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &requestedSopClassUid, const std::string &requestedSopInstanceUid, const DataSet &modificationList)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • requestedSopClassUid: the requested SOP class UID
  • requestedSopInstanceUid: the requested SOP instance UID
  • modificationList: dataset containing the new attributes values

NSetResponse

class imebra::NSetResponse

Represents the N-SET response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NSetResponseNSetResponse(const NSetCommand &receivedCommand, attributeIdentifierList_t modifiedAttributes)

Constructor of a successful response.

Parameters
  • receivedCommand: the command for which this response is being constructed
  • modifiedAttributes: list of modified attributes

imebra::NSetResponseNSetResponse(const NSetCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: the command for which this response is being constructed
  • responseCode: response code

attributeIdentifierList_t imebra::NSetResponsegetModifiedAttributes() const

Returns the list of modified attributes.

Return
list of modified attributes

NGetCommand

class imebra::NGetCommand

Represents a N-GET command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NGetCommandNGetCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &requestedSopClassUid, const std::string &requestedSopInstanceUid, const attributeIdentifierList_t &attributeIdentifierList)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • requestedSopClassUid: the requested SOP class UID
  • requestedSopInstanceUid: the requested SOP instance UID
  • attributeIdentifierList: the list of identifier tags. An empty list means “all the tags”

attributeIdentifierList_t imebra::NGetCommandgetAttributeList() const

Return the list of attributes to retrieve. an empty list means all.

Return
the list of attributes to retrieve. An empty list means “all the attributes”

NGetResponse

class imebra::NGetResponse

Represents a N-GET response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NGetResponseNGetResponse(const NGetCommand &receivedCommand, dimseStatusCode_t responseCode, const DataSet &attributeList)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: response code
  • attributeList: dataset containing the list of attribute identifiers

imebra::NGetResponseNGetResponse(const NGetCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: response code

NActionCommand

class imebra::NActionCommand

Represents the N-ACTION command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NActionCommandNActionCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &requestedSopClassUid, const std::string &requestedSopInstanceUid, std::uint16_t actionID, const DataSet &actionInformation)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • requestedSopClassUid: the requested SOP class UID
  • requestedSopInstanceUid: the requested SOP instance UID
  • actionID: action ID
  • actionInformation: dataset containing information about the action

imebra::NActionCommandNActionCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &requestedSopClassUid, const std::string &requestedSopInstanceUid, std::uint16_t actionID)

Constructor.

Parameters

std::uint16_t imebra::NActionCommandgetActionID() const

Returns the action’s ID.

Return
the action’s ID

NActionResponse

class imebra::NActionResponse

Represents the N-ACTION response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NActionResponseNActionResponse(const NActionCommand &receivedCommand, const DataSet &actionReply)

Constructor for a successful reply.

Parameters
  • receivedCommand: the command for which this response is being constructed
  • actionReply: dataSet with information about the action reply

imebra::NActionResponseNActionResponse(const NActionCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor for a successful reply.

Parameters
  • receivedCommand: the command for which this response is being constructed
  • responseCode: the response code

std::uint16_t imebra::NActionResponsegetActionID() const

Returns the action’s ID.

Return
the action’s ID

NCreateCommand

class imebra::NCreateCommand

The N-CREATE command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NCreateCommandNCreateCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &affectedSopClassUid, const std::string &affectedSopInstanceUid, const DataSet &attributeList)

Constructor.

Parameters
  • abstractSyntax: the message’s abstract syntax (previously negotiated via the PresentationContexts parameter of the AssociationSCP or AssociationSCU constructors)
  • messageID: message ID (can be retrieved with DimseService::getNextCommandID()
  • affectedSopClassUid: the affected SOP class UID
  • affectedSopInstanceUid: the affected SOP instance UID
  • attributeList: the dataset containing the attributes and values

imebra::NCreateCommandNCreateCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &affectedSopClassUid, const std::string &affectedSopInstanceUid)

Constructor.

Parameters

NCreateResponse

class imebra::NCreateResponse

Represents the N-CREATE response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NCreateResponseNCreateResponse(const NCreateCommand &receivedCommand, const DataSet &attributeList)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • attributeList: dataset containing the attributes list

imebra::NCreateResponseNCreateResponse(const NCreateCommand &receivedCommand, const std::string &affectedSopInstanceUid, const DataSet &attributeList)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • affectedSopInstanceUid: affected SOP instance UID
  • attributeList: dataset containing the attributes list

imebra::NCreateResponseNCreateResponse(const NCreateCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: the response code

imebra::NCreateResponseNCreateResponse(const NCreateCommand &receivedCommand, const std::string &affectedSopInstanceUid)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • affectedSopInstanceUid: created SOP instance UID

NDeleteCommand

class imebra::NDeleteCommand

The N-DELETE command.

Inherits from imebra::DimseCommand

Public Functions

imebra::NDeleteCommandNDeleteCommand(const std::string &abstractSyntax, std::uint16_t messageID, const std::string &requestedSopClassUid, const std::string &requestedSopInstanceUid)

Constructor.

Parameters

NDeleteResponse

class imebra::NDeleteResponse

The N-DELETE response.

Inherits from imebra::DimseResponse

Public Functions

imebra::NDeleteResponseNDeleteResponse(NDeleteCommand &receivedCommand, dimseStatusCode_t responseCode)

Constructor.

Parameters
  • receivedCommand: command for which the response is being constructed
  • responseCode: response code