/// <summary> /// Emulation for Verification, Storage and Print SOP Classes. /// </summary> /// <remarks> /// The Dicom Validation Tool (DVT) can be used as either /// Service Class User (SCU) or Service Class Provider (SCP) with a direct /// connection to the System Under Test (SUT)Product (via TCP/IP). /// DVT acts as an emulator for the DICOM Service classes being tested. /// DVT can also create and validate DICOM media files. /// </remarks> public EmulatorSession() { m_adaptee = new Wrappers.MEmulatorSession(); Wrappers.MDisposableResources.AddDisposable(m_adaptee); m_printer = null; _Initialize(); }
internal Printer(Wrappers.MEmulatorSession adaptee) { if (adaptee == null) { throw new System.ArgumentNullException("adaptee"); } this.m_adaptee = adaptee; }
internal EmulatorSession(Wrappers.MBaseSession adaptee) { if (adaptee == null) { throw new System.ArgumentNullException("adaptee"); } // Check type m_adaptee = (Wrappers.MEmulatorSession)adaptee; Wrappers.MDisposableResources.AddDisposable(m_adaptee); _Initialize(); }
internal SupportedTransferSyntaxSettings(Wrappers.MEmulatorSession adaptee) { if (adaptee == null) { throw new System.ArgumentNullException("adaptee"); } this.m_adaptee = adaptee; // load the supported list from the values in the session System.UInt16 nrOfSupportedTransferSyntaxes = this.m_adaptee.NrOfSupportedTransferSyntaxes; for (System.UInt16 index = 0; index < nrOfSupportedTransferSyntaxes; index++) { this._TransferSyntaxList.Add( new DvtkData.Dul.TransferSyntax(this.m_adaptee.get_SupportedTransferSyntax(index)) ); } // subscribe to contents changes to call underlying MBaseSession methods. this._TransferSyntaxList.ListChanged += new System.ComponentModel.ListChangedEventHandler(_TransferSyntaxList_ListChanged); }
internal EmulatorSession(Wrappers.MBaseSession adaptee) { if (adaptee == null) throw new System.ArgumentNullException("adaptee"); // Check type m_adaptee = (Wrappers.MEmulatorSession)adaptee; Wrappers.MDisposableResources.AddDisposable(m_adaptee); _Initialize(); }
internal Printer(Wrappers.MEmulatorSession adaptee) { if (adaptee == null) throw new System.ArgumentNullException("adaptee"); this.m_adaptee = adaptee; }