MeVisLab Toolbox Reference
mlDicomTreeDefaultValidation.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
6 
11 //----------------------------------------------------------------------------------
12 #pragma once
13 
16 
17 ML_START_NAMESPACE
18 
19 //----------------------------------------------------------------------------------
21 //----------------------------------------------------------------------------------
23 public:
26 
31  virtual std::string validateDCMTree(DCMTree::Const_TreePtr dcmTree,
32  std::string &warnings) override;
33 
35  inline void setValueSizeCheckOn(bool check) { _valueSizeCheck = check; }
36 
38  inline bool isValueSizeCheckOn() const { return _valueSizeCheck; }
39 
43  inline void setValueMultiplicityCheckOn(bool check) { _valueMultiplicityCheck = check; }
44 
46  inline bool isValueMultiplicityCheckOn() const { return _valueMultiplicityCheck; }
47 
49  inline void setValueRepresentationCheckOn(bool check) { _valueRepresentationCheck = check; }
50 
52  inline bool isValueRepresentationCheckOn() const { return _valueRepresentationCheck; }
53 
55  inline void setTypeOneCheckOn(bool check) { _typeOneCheck = check; }
56 
58  inline bool isTypeOneCheckOn() const { return _typeOneCheck; }
59 
61  inline void setCheckCommonSettingsOn(bool check) { _checkCommonSettings = check; }
62 
64  inline bool isCheckCommonSettingsOn() const { return _checkCommonSettings; }
65 
68  inline void setWarnUnknownEnumeratorItemsOn(bool warn){ _warnUnknownEnumeratorItems = warn; }
69 
71  inline bool isWarnEnumeratorItemsOn() const { return _warnUnknownEnumeratorItems; }
72 
73 
74 private:
76  bool _valueSizeCheck;
77 
79  bool _valueMultiplicityCheck;
80 
82  bool _valueRepresentationCheck;
83 
86  bool _typeOneCheck;
87 
89  bool _checkCommonSettings;
90 
93  bool _warnUnknownEnumeratorItems;
94 
97 };
98 
99 ML_END_NAMESPACE
Project global and OS specific declarations.
#define ML_DICOM_ANALYSIS_WORK_EXPORT
DLL export macro definition.
Class implementing some generic DICOM tree checks.
bool isValueSizeCheckOn() const
Returns true if tag value sizes are checked, otherwise false.
DicomTreeDefaultValidation()
Constructor.
void setCheckCommonSettingsOn(bool check)
If true (the default) then a number of common value settings are checked, otherwise not.
void setValueMultiplicityCheckOn(bool check)
If true then the tag value multiplicity is checked, otherwise not; default is false.
virtual std::string validateDCMTree(DCMTree::Const_TreePtr dcmTree, std::string &warnings) override
Applies some basic validation on dcmTree and returns a non empty string if they fail; otherwise an em...
void setValueRepresentationCheckOn(bool check)
If true (the default) then the tag value representation is checked, otherwise not.
bool isCheckCommonSettingsOn() const
Returns true if checks of common settings are enabled, otherwise false.
bool isValueRepresentationCheckOn() const
Returns true if tag value representation is checked, otherwise false.
bool isTypeOneCheckOn() const
Returns true if tag value representation is checked, otherwise false.
void setWarnUnknownEnumeratorItemsOn(bool warn)
If true (the default) then enumerator tag values which are not given as defined terms in the standard...
void setValueSizeCheckOn(bool check)
If true then the size of tag values are checked against allowed sizes.
bool isWarnEnumeratorItemsOn() const
Returns true if unknown enumerator items will be warned, otherwise false.
void setTypeOneCheckOn(bool check)
If true (the default) then the tag value representation is checked, otherwise not.
bool isValueMultiplicityCheckOn() const
Returns true if tag value multiplicity is checked, otherwise false.
A pure virtual ML module base class to validate a DCMTree which can be cascaded.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Header file of a base class providing a member function to validate a DICOM tree.
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73