GDCM  2.4.5
gdcmFileAnonymizer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef GDCMFILEANONYMIZER_H
15 #define GDCMFILEANONYMIZER_H
16 
17 #include "gdcmSubject.h"
18 #include "gdcmEvent.h"
19 #include "gdcmTag.h"
20 #include "gdcmVL.h"
21 
22 namespace gdcm
23 {
24 class FileAnonymizerInternals;
25 
48 {
49 public:
51  ~FileAnonymizer();
52 
55  void Empty( Tag const &t );
56 
58  void Remove( Tag const &t );
59 
63  void Replace( Tag const &t, const char *value_str );
64 
67  void Replace( Tag const &t, const char *value_data, VL const & vl );
68 
70  void SetInputFileName(const char *filename_native);
71 
73  void SetOutputFileName(const char *filename_native);
74 
76  bool Write();
77 
78 private:
79  bool ComputeEmptyTagPosition();
80  bool ComputeRemoveTagPosition();
81  bool ComputeReplaceTagPosition();
82  FileAnonymizerInternals *Internals;
83 };
84 
85 } // end namespace gdcm
86 
87 #endif //GDCMFILEANONYMIZER_H
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
FileAnonymizer.
Definition: gdcmFileAnonymizer.h:47
Value Length.
Definition: gdcmVL.h:29
Subject.
Definition: gdcmSubject.h:28
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo