/// <summary> /// Return the DicomMessages from this collection that have the specified DimseCommand. /// </summary> /// <param name="dimseCommand">the DimseCommand.</param> /// <returns>The DicomMessages with the specified DimseCommand.</returns> private DicomMessageCollection DicomMessagesForDimseCommand(DvtkData.Dimse.DimseCommand dimseCommand) { DicomMessageCollection dicomMessages = new DicomMessageCollection(); foreach (DicomMessage dicomMessage in this) { if (dicomMessage.CommandSet.DimseCommand == dimseCommand) { dicomMessages.Add(dicomMessage); } } return(dicomMessages); }
/// <summary> /// Constructor. Creates an empty Command Set. /// </summary> /// <param name="dimseCommand">The Dimse Command.</param> internal CommandSet(DvtkData.Dimse.DimseCommand dimseCommand) : base(new DvtkData.Dimse.CommandSet(dimseCommand)) { // Do nothing. }
/// <summary> /// <see cref="IDefinitionManagement.GetIodNameFromDefinition"/> /// </summary> public System.String GetIodNameFromDefinition(DvtkData.Dimse.DimseCommand command, System.String uid) { System.String iodName = this.m_adaptee.get_IodNameFromDefinition(command, uid); return(iodName); }
/// <summary> /// Constructor. /// /// Use this constructor to create a DicomMessage with an empty command set /// and the given Dataset. /// </summary> /// <param name="dimseCommand">The Dimse command.</param> /// <param name="dataSet">The Dataset.</param> public DicomMessage(DvtkData.Dimse.DimseCommand dimseCommand, DataSet dataSet) { this.commandSet = new CommandSet(dimseCommand); this.dataSet = dataSet; }
/// <summary> /// <see cref="IDefinitionManagement.GetFileNameFromSOPUID"/> /// </summary> public System.String GetFileNameFromSOPUID(DvtkData.Dimse.DimseCommand command, System.String uid) { System.String fileName = this.m_adaptee.get_FileNameFromSOPUID(command, uid); return(fileName); }