Class DicomDatasetLogger
DICOM dataset walker for logging.
Implements
Inherited Members
Namespace: Dicom.Log
Assembly: cs.temp.dll.dll
Syntax
public class DicomDatasetLogger : IDicomDatasetWalker
Constructors
DicomDatasetLogger(Logger, LogLevel, Int32, Int32)
Initializes an instance of DicomDatasetLogger.
Declaration
public DicomDatasetLogger(Logger logger, LogLevel level, int width = 128, int valueLength = 64)
Parameters
| Type | Name | Description |
|---|---|---|
| Logger | logger | Logger. |
| LogLevel | level | Log level. |
| Int32 | width | Maximum write width. |
| Int32 | valueLength | Maximum value length. |
Methods
OnBeginFragment(DicomFragmentSequence)
Handler for traversing beginning of fragment.
Declaration
public bool OnBeginFragment(DicomFragmentSequence fragment)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomFragmentSequence | fragment | Fragment sequence. |
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnBeginSequence(DicomSequence)
Handler for traversing beginning of sequence.
Declaration
public bool OnBeginSequence(DicomSequence sequence)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomSequence | sequence | Sequence to traverse. |
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnBeginSequenceItem(DicomDataset)
Handler for traversing beginning of sequence item.
Declaration
public bool OnBeginSequenceItem(DicomDataset dataset)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomDataset | dataset | Item dataset. |
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnBeginWalk()
Handler for beginning the traversal.
Declaration
public void OnBeginWalk()
OnElement(DicomElement)
Handler for traversing a DICOM element.
Declaration
public bool OnElement(DicomElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomElement | element | Element to traverse. |
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnElementAsync(DicomElement)
Asynchronous handler for traversing a DICOM element.
Declaration
public Task<bool> OnElementAsync(DicomElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomElement | element | Element to traverse. |
Returns
| Type | Description |
|---|---|
| Task<Boolean> | true if traversing completed without issues, false otherwise. |
OnEndFragment()
Handler for traversing end of fragment.
Declaration
public bool OnEndFragment()
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnEndSequence()
Handler for traversing end of sequence.
Declaration
public bool OnEndSequence()
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnEndSequenceItem()
Handler for traversing end of sequence item.
Declaration
public bool OnEndSequenceItem()
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnEndWalk()
Handler for end of traversal.
Declaration
public void OnEndWalk()
OnFragmentItem(IByteBuffer)
Handler for traversing fragment item.
Declaration
public bool OnFragmentItem(IByteBuffer item)
Parameters
| Type | Name | Description |
|---|---|---|
| IByteBuffer | item | Buffer containing the fragment item. |
Returns
| Type | Description |
|---|---|
| Boolean | true if traversing completed without issues, false otherwise. |
OnFragmentItemAsync(IByteBuffer)
Asynchronous handler for traversing fragment item.
Declaration
public Task<bool> OnFragmentItemAsync(IByteBuffer item)
Parameters
| Type | Name | Description |
|---|---|---|
| IByteBuffer | item | Buffer containing the fragment item. |
Returns
| Type | Description |
|---|---|
| Task<Boolean> | true if traversing completed without issues, false otherwise. |