DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
Class representing the Synchronization Module: More...
Public Member Functions | |
IODSynchronizationModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules) | |
Constructor. More... | |
IODSynchronizationModule () | |
Constructor. | |
virtual | ~IODSynchronizationModule () |
Destructor. | |
virtual void | resetRules () |
Resets rules to their original values. | |
virtual OFString | getName () const |
Get name of module. More... | |
virtual OFCondition | getSynchronizationFrameOfReferenceUID (OFString &value, const signed long pos=0) const |
Get Synchronization Frame of Reference UID. More... | |
virtual OFCondition | getSynchronizationTrigger (OFString &value, const signed long pos=0) const |
Get Synchronization Trigger. More... | |
virtual OFCondition | getTriggerSourceOrType (OFString &value, const signed long pos=0) const |
Get Trigger Source or Type. More... | |
virtual OFCondition | getSynchronizationChannel (OFVector< Uint16 > &value) const |
Get Synchronization Channel. More... | |
virtual OFCondition | getAcquisitionTimeSynchronized (OFString &value, const signed long pos=0) const |
Get Acquisition Time Synchronized. More... | |
virtual OFCondition | getTimeSource (OFString &value, const signed long pos=0) const |
Get Time Source. More... | |
virtual OFCondition | getTimeDistributionProtocol (OFString &value, const signed long pos=0) const |
Get Time Distribution Protocol. More... | |
virtual OFCondition | getNTPSourceAddress (OFString &value, const signed long pos=0) const |
Get NTP Source Address. More... | |
virtual OFCondition | setSynchronizationFrameofReferenceUID (const OFString &value, const OFBool checkValue=OFTrue) |
Set Synchronization Frame of Reference UID. More... | |
virtual OFCondition | setSynchronizationTrigger (const OFString &value, const OFBool checkValue=OFTrue) |
Set Synchronization Trigger. More... | |
virtual OFCondition | setTriggerSourceOrType (const OFString &value, const OFBool checkValue=OFTrue) |
Set Trigger Source or Type. More... | |
virtual OFCondition | setSynchronizationChannel (const OFPair< Uint16, Uint16 > &value, const OFBool checkValue=OFTrue) |
Set Synchronization Channel. More... | |
virtual OFCondition | setAcquisitionTimeSynchronized (const OFString &value, const OFBool checkValue=OFTrue) |
Set Acquisition Time Synchronized. More... | |
virtual OFCondition | setTimeSource (const OFString &value, const OFBool checkValue=OFTrue) |
Set Time Source. More... | |
virtual OFCondition | setTimeDistributionProtocol (const OFString &value, const OFBool checkValue=OFTrue) |
Set Time Distribution Protocol. More... | |
virtual OFCondition | setNTPSourceAddress (const OFString &value, const OFBool checkValue=OFTrue) |
Set NTP Source Address. More... | |
![]() | |
IODModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules) | |
Constructor. More... | |
IODModule () | |
Constructor. More... | |
IODModule (const IODModule &rhs) | |
Copy constructor, creates shallow copy. More... | |
IODModule & | operator= (const IODModule &rhs) |
Assignment operator, creates shallow copy. More... | |
~IODModule () | |
Desctructor. | |
![]() | |
IODComponent (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL) | |
Constructor. More... | |
IODComponent (IODComponent *parent=NULL) | |
Constructor, creates rules and item from scratch. More... | |
IODComponent & | operator= (const IODComponent &rhs) |
Assignment operator, copies contained item and rule set from rhs to "this" attribute set. More... | |
IODComponent (const IODComponent &rhs) | |
Copy constructor, copies reference to contained item and rule set to "this" attribute set. More... | |
virtual | ~IODComponent () |
Virtual Destructor. | |
void | clearData () |
Clear all attributes from the data that are handled by this module. More... | |
virtual void | inventMissing () |
Set missing values by inventing "default values". More... | |
OFshared_ptr< IODRules > | getRules () |
Get rules handled by this module. More... | |
virtual void | makeOptional () |
Make component optional by turning all attributes requirement types of it to type 3. More... | |
DcmItem & | getData () |
Get the data handled by this module. More... | |
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
Read attributes from given item into this class. More... | |
virtual OFCondition | write (DcmItem &destination) |
Write attributes from this class into given item. More... | |
virtual OFCondition | check (const OFBool quiet=OFFalse) |
Check whether this component's data satisfies the underlying rules. More... | |
virtual int | compare (const IODComponent &rhs) const |
Comparison operator for IOD Components. More... | |
Protected Member Functions | |
virtual OFBool | isValidAcquisitionTimeSynchronized (const OFString &value) |
Check whether given string is a valid value for attribute Acquisition Time Synchronized. More... | |
virtual OFBool | isValidTimeDistributionProtocol (const OFString &value) |
Check whether given string is a valid value for attribute Time Distribution Protocol. More... | |
virtual OFBool | isValidSynchronizationTrigger (const OFString &value) |
Check whether given string is a valid value for attribute Synchronization Trigger. More... | |
Static Private Attributes | |
static const OFString | m_ModuleName |
Module name "SynchronizationModule". | |
Additional Inherited Members | |
![]() | |
static OFCondition | read (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that reads attributes from given item into destination item, as determined by the provided rules and component name. More... | |
static OFCondition | write (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that writes attributes from given item into destination item, as determined by the provided rules and component name. More... | |
![]() | |
OFshared_ptr< DcmItem > | m_Item |
Shared pointer to the data handled by this class. More... | |
OFshared_ptr< IODRules > | m_Rules |
Rules describing the attributes governed by this class. | |
IODComponent * | m_Parent |
The parent component (may be NULL) of this class. | |
Class representing the Synchronization Module:
Synchronization Frame of Reference UID: (UI, 1, 1) Synchronization Trigger: (CS, 1, 1) Trigger Source or Type: (LO, 1, 3) Synchronization Channel: (US, 2, 1C) Acquisition Time Synchronized: (CS, 1, 1) Time Source: (SH, 1, 3) Time Distribution Protocol: (CS, 1, 3) NTP Source Address (LO, 1, 3)
IODSynchronizationModule::IODSynchronizationModule | ( | OFshared_ptr< DcmItem > | item, |
OFshared_ptr< IODRules > | rules | ||
) |
Constructor.
item | The item to be used for data storage. If NULL, the class creates an empty data container. |
rules | The rule set for this class. If NULL, the class creates one from scratch and adds its values. |
|
virtual |
Get Acquisition Time Synchronized.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
|
virtual |
Get NTP Source Address.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Synchronization Channel.
value | Reference to variable in which the value should be stored |
|
virtual |
Get Synchronization Frame of Reference UID.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Synchronization Trigger.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Time Distribution Protocol.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Time Source.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Get Trigger Source or Type.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
protectedvirtual |
Check whether given string is a valid value for attribute Acquisition Time Synchronized.
value | The value to check |
|
protectedvirtual |
Check whether given string is a valid value for attribute Synchronization Trigger.
value | The value to check |
|
protectedvirtual |
Check whether given string is a valid value for attribute Time Distribution Protocol.
value | The value to check |
|
virtual |
Set Acquisition Time Synchronized.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (CS) and VM (1) if enabled |
|
virtual |
Set NTP Source Address.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (LO) and VM (1) if enabled |
|
virtual |
Set Synchronization Channel.
value | Value to be set |
checkValue | Check 'value'. Not evaluated (here for consistency with other setter functions). |
|
virtual |
Set Synchronization Frame of Reference UID.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (UI) and VM (1) if enabled |
|
virtual |
Set Synchronization Trigger.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (CS) and VM (1) if enabled |
|
virtual |
Set Time Distribution Protocol.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (CS) and VM (1) if enabled |
|
virtual |
Set Time Source.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (SH) and VM (1) if enabled |
|
virtual |
Set Trigger Source or Type.
value | Value to be set |
checkValue | Check 'value' for conformance with VR (LO) and VM (1) if enabled |