Odil
A C++11 library for the DICOM standard
|
Base class for all DIMSE response messages. More...
#include <Response.h>
Public Types | |
enum | Status { Success =0x0000, Cancel =0xFE00, Pending =0xFF00, AttributeListError =0x0107, AttributeValueOutOfRange =0x0116, SOPClassNotSupported =0x0122, ClassInstanceConflict =0x0119, DuplicateSOPInstance =0x0111, DuplicateInvocation =0x0210, InvalidArgumentValue =0x0115, InvalidAttributeValue =0x0106, InvalidObjectInstance =0x0117, MissingAttribute =0x0120, MissingAttributeValue =0x0121, MistypedArgument =0x0212, NoSuchArgument =0x0114, NoSuchAttribute =0x0105, NoSuchEventType =0x0113, NoSuchSOPInstance =0x0112, NoSuchSOPClass =0x0118, ProcessingFailure =0x0110, ResourceLimitation =0x0213, UnrecognizedOperation =0x0211, NoSuchActionType =0x0123, RefusedNotAuthorized =0x0124 } |
General status codes, from PS3.7, C. More... | |
Public Member Functions | |
Response (Value::Integer message_id_being_responded_to, Value::Integer status) | |
Create a response with given message id and status;. More... | |
Response (std::shared_ptr< Message const > message) | |
Create a response from the Message ID Being Responded To and the Status stored in the message command set. More... | |
ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO (message_id_being_responded_to, registry::MessageIDBeingRespondedTo) ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(offending_element | |
registry::OffendingElement | ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO (error_comment, registry::ErrorComment) ODIL_MESSAGE_OPTIONAL_FIELD_INTEGER_MACRO(error_id |
registry::OffendingElement registry::ErrorID | ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO (affected_sop_instance_uid, registry::AffectedSOPInstanceUID) ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO(attribute_identifier_list |
registry::OffendingElement registry::ErrorID registry::AttributeIdentifierList bool | is_pending () const |
Test whether the status class is pending. More... | |
bool | is_warning () const |
Test whether the status class is warning. More... | |
bool | is_failure () const |
Test whether the status class is failure. More... | |
void | set_status_fields (std::shared_ptr< DataSet const > status_fields) |
Set the status fields (cf. PS.37, C) More... | |
Static Public Member Functions | |
static bool | is_pending (Value::Integer status) |
Test whether the status class is pending. More... | |
static bool | is_warning (Value::Integer status) |
Test whether the status class is warning. More... | |
static bool | is_failure (Value::Integer status) |
Test whether the status class is failure. More... | |
Additional Inherited Members |
Base class for all DIMSE response messages.
General status codes, from PS3.7, C.
odil::message::Response::Response | ( | Value::Integer | message_id_being_responded_to, |
Value::Integer | status | ||
) |
Create a response with given message id and status;.
odil::message::Response::Response | ( | std::shared_ptr< Message const > | message | ) |
Create a response from the Message ID Being Responded To and the Status stored in the message command set.
Raise an exception is either of those elements is missing.
|
static |
Test whether the status class is failure.
bool odil::message::Response::is_failure | ( | ) | const |
Test whether the status class is failure.
|
static |
Test whether the status class is pending.
registry::OffendingElement registry::ErrorID registry::AttributeIdentifierList bool odil::message::Response::is_pending | ( | ) | const |
Test whether the status class is pending.
|
static |
Test whether the status class is warning.
bool odil::message::Response::is_warning | ( | ) | const |
Test whether the status class is warning.
odil::message::Response::ODIL_MESSAGE_MANDATORY_FIELD_INTEGER_MACRO | ( | message_id_being_responded_to | , |
registry::MessageIDBeingRespondedTo | |||
) |
registry::OffendingElement odil::message::Response::ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO | ( | error_comment | , |
registry::ErrorComment | |||
) |
registry::OffendingElement registry::ErrorID odil::message::Response::ODIL_MESSAGE_OPTIONAL_FIELD_STRING_MACRO | ( | affected_sop_instance_uid | , |
registry::AffectedSOPInstanceUID | |||
) |
void odil::message::Response::set_status_fields | ( | std::shared_ptr< DataSet const > | status_fields | ) |
Set the status fields (cf. PS.37, C)