MeVisLab Toolbox Reference
mlDICOMTreeCompareTools.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
13 #include "MLDICOMTagsSystem.h"
14 
15 #include <ThirdPartyWarningsDisable.h>
16 #include <vector>
17 #include <ThirdPartyWarningsRestore.h>
18 
19 #include <mlTypeDefs.h>
20 
21 // DCMTree prototypes
22 #include <DCMTree_Lib.h>
23 
24 ML_START_NAMESPACE
25 
26 //----------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------
29 namespace DICOMTagTools {
30 
47  bool compareMultiplicity=false,
48  bool compareMultiFrameData=true);
49 
80  DCMTree::Const_TreePtr inputTree2,
81  const std::vector<DCMTree::TagId> &idsExcludedFromChanged,
82  DCMTree::TreePtr &unchangedTags,
83  DCMTree::TreePtr &addedTags,
84  DCMTree::TreePtr &removedTags,
85  DCMTree::TreePtr &changedTags,
86  bool alsoExcludeFromAdded=false,
87  bool alsoExcludeFromRemoved=false,
88  bool compareRecursively=false,
89  bool cleanupEmptyTrailingSequenceTreesInAddedTags=false,
90  bool cleanupEmptyTrailingSequenceTreesInRemovedTags=false,
91  bool compareMultiplicity=false,
92  bool cleanupEmptyTrailingSequenceTreesInChangedTags=true,
93  bool compareMultiFrameData=true);
94 
95 };
96 
97 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTags_EXPORT
If included by external modules, exported symbols are declared as import symbols.
boost::shared_ptr< const Tag > Const_TagPtr
Definition: DCMTree_Lib.h:63
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70
MLDICOMTags_EXPORT bool doTagsEqual(DCMTree::Const_TagPtr tag1, DCMTree::Const_TagPtr tag2, bool compareMultiplicity=false, bool compareMultiFrameData=true)
Compare the given two tags and their contents for equality.
MLDICOMTags_EXPORT void compareDCMTrees(DCMTree::Const_TreePtr inputTree1, DCMTree::Const_TreePtr inputTree2, const std::vector< DCMTree::TagId > &idsExcludedFromChanged, DCMTree::TreePtr &unchangedTags, DCMTree::TreePtr &addedTags, DCMTree::TreePtr &removedTags, DCMTree::TreePtr &changedTags, bool alsoExcludeFromAdded=false, bool alsoExcludeFromRemoved=false, bool compareRecursively=false, bool cleanupEmptyTrailingSequenceTreesInAddedTags=false, bool cleanupEmptyTrailingSequenceTreesInRemovedTags=false, bool compareMultiplicity=false, bool cleanupEmptyTrailingSequenceTreesInChangedTags=true, bool compareMultiFrameData=true)
Compare the given two trees and update the result pointers.